mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 00:30:19 +01:00
Mesa currently disables -fPIC for DRI on x86, but most Linux distros are re-enabling -fPIC for all DRI arches. Let's just do that here since that's normally what's wanted for shared libraries. Some justification: http://bugs.gentoo.org/show_bug.cgi?id=110840#c9 On the other hand, position-independent code is only necessary when building shared libraries, so disable it for the static cases.
14 lines
322 B
Makefile
14 lines
322 B
Makefile
# -*-makefile-*-
|
|
# Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
|
|
|
|
include $(TOP)/configs/linux-dri
|
|
|
|
CONFIG_NAME = linux-dri-x86
|
|
|
|
# Add -m32 to CFLAGS:
|
|
ARCH_FLAGS = -m32
|
|
|
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
|
|
ASM_SOURCES = $(X86_SOURCES)
|
|
ASM_API = $(X86_API)
|
|
|