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-static | 1 + 1 file changed, 1 insertion(+) (limited to 'configs/linux-static') diff --git a/configs/linux-static b/configs/linux-static index 45aefceece..2a77d4c4b7 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 -- cgit v1.2.3