diff options
author | Dan Nicholson <[email protected]> | 2007-10-31 10:33:20 -0700 |
---|---|---|
committer | Dan Nicholson <[email protected]> | 2007-10-31 14:19:20 -0700 |
commit | c3b5adaa9a7bdb7e61305c32e4991e3b38dab902 (patch) | |
tree | 68899824e36cc12e5edf3cd9cc0b1f6e0bee249b /configs | |
parent | 013dbcd6111bc880e65ed00a7ca31e19230a81d5 (diff) |
configs: Always use -fPIC for shared libraries, never for static
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.
Diffstat (limited to 'configs')
-rw-r--r-- | configs/linux-alpha-static | 1 | ||||
-rw-r--r-- | configs/linux-dri-x86 | 3 | ||||
-rw-r--r-- | configs/linux-osmesa16-static | 1 | ||||
-rw-r--r-- | configs/linux-ppc-static | 1 | ||||
-rw-r--r-- | configs/linux-solo-x86 | 3 | ||||
-rw-r--r-- | configs/linux-static | 1 | ||||
-rw-r--r-- | configs/linux-x86-64-static | 1 | ||||
-rw-r--r-- | configs/linux-x86-static | 1 |
8 files changed, 6 insertions, 6 deletions
diff --git a/configs/linux-alpha-static b/configs/linux-alpha-static index 08ec2d177e1..53808d77ca4 100644 --- a/configs/linux-alpha-static +++ b/configs/linux-alpha-static @@ -11,6 +11,7 @@ CFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE -DUSE_XSHM CXXFLAGS = -O3 -mcpu=ev5 -ansi -mieee -pedantic -D_XOPEN_SOURCE GLUT_CFLAGS = -fexceptions MKLIB_OPTIONS = -static +PIC_FLAGS = # Work around aliasing bugs - developers should comment this out CFLAGS += -fno-strict-aliasing diff --git a/configs/linux-dri-x86 b/configs/linux-dri-x86 index b196004e58f..f9b164d27ab 100644 --- a/configs/linux-dri-x86 +++ b/configs/linux-dri-x86 @@ -5,9 +5,6 @@ include $(TOP)/configs/linux-dri CONFIG_NAME = linux-dri-x86 -# Unnecessary on x86, generally. -PIC_FLAGS = - # Add -m32 to CFLAGS: ARCH_FLAGS = -m32 diff --git a/configs/linux-osmesa16-static b/configs/linux-osmesa16-static index 22f6851d325..0e0d1519f39 100644 --- a/configs/linux-osmesa16-static +++ b/configs/linux-osmesa16-static @@ -10,6 +10,7 @@ CXX = g++ CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE MKLIB_OPTIONS = -static +PIC_FLAGS = # Work around aliasing bugs - developers should comment this out CFLAGS += -fno-strict-aliasing diff --git a/configs/linux-ppc-static b/configs/linux-ppc-static index d0e168811f8..3f3dc556437 100644 --- a/configs/linux-ppc-static +++ b/configs/linux-ppc-static @@ -5,6 +5,7 @@ include $(TOP)/configs/linux-ppc CONFIG_NAME = linux-ppc-static MKLIB_OPTIONS = -static +PIC_FLAGS = # Library names (actual file names) GL_LIB_NAME = libGL.a diff --git a/configs/linux-solo-x86 b/configs/linux-solo-x86 index 13cab376587..e37b9fb428d 100644 --- a/configs/linux-solo-x86 +++ b/configs/linux-solo-x86 @@ -5,9 +5,6 @@ include $(TOP)/configs/linux-solo CONFIG_NAME = linux-solo-x86 -# Unnecessary on x86, generally. -PIC_FLAGS = - ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ASM_SOURCES = $(X86_SOURCES) ASM_API = $(X86_API) diff --git a/configs/linux-static b/configs/linux-static index 45aefceece3..2a77d4c4b7b 100644 --- a/configs/linux-static +++ b/configs/linux-static @@ -5,6 +5,7 @@ include $(TOP)/configs/linux CONFIG_NAME = linux-static MKLIB_OPTIONS = -static +PIC_FLAGS = # Library names (actual file names) GL_LIB_NAME = libGL.a diff --git a/configs/linux-x86-64-static b/configs/linux-x86-64-static index 4bb35ed859b..06e6fc36503 100644 --- a/configs/linux-x86-64-static +++ b/configs/linux-x86-64-static @@ -5,6 +5,7 @@ include $(TOP)/configs/linux-x86-64 CONFIG_NAME = linux-x86-64-static MKLIB_OPTIONS = -static +PIC_FLAGS = # Library names (actual file names) GL_LIB_NAME = libGL.a diff --git a/configs/linux-x86-static b/configs/linux-x86-static index 33c131eb2b5..2b6478b5868 100644 --- a/configs/linux-x86-static +++ b/configs/linux-x86-static @@ -5,6 +5,7 @@ include $(TOP)/configs/linux-x86 CONFIG_NAME = linux-x86-static MKLIB_OPTIONS = -static +PIC_FLAGS = # Library names (actual file names) GL_LIB_NAME = libGL.a |