From c3b5adaa9a7bdb7e61305c32e4991e3b38dab902 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 31 Oct 2007 10:33:20 -0700 Subject: 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. --- configs/linux-alpha-static | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/linux-alpha-static') diff --git a/configs/linux-alpha-static b/configs/linux-alpha-static index 08ec2d177e..53808d77ca 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 -- cgit v1.2.3