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-dri-x86 | 3 --- 1 file changed, 3 deletions(-) (limited to 'configs/linux-dri-x86') diff --git a/configs/linux-dri-x86 b/configs/linux-dri-x86 index b196004e58..f9b164d27a 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 -- cgit v1.2.3