summaryrefslogtreecommitdiffstats
path: root/configs/linux-osmesa16-static
diff options
context:
space:
mode:
authorDan Nicholson <[email protected]>2007-10-31 10:33:20 -0700
committerDan Nicholson <[email protected]>2007-10-31 14:19:20 -0700
commitc3b5adaa9a7bdb7e61305c32e4991e3b38dab902 (patch)
tree68899824e36cc12e5edf3cd9cc0b1f6e0bee249b /configs/linux-osmesa16-static
parent013dbcd6111bc880e65ed00a7ca31e19230a81d5 (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/linux-osmesa16-static')
-rw-r--r--configs/linux-osmesa16-static1
1 files changed, 1 insertions, 0 deletions
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