changeset 20388:9e8d9b93639c

Remove -fno-PIC check from configure and put -fPIC back at the beginning of CFLAGS in libdha/ and vidix/drivers/.
author diego
date Mon, 23 Oct 2006 10:02:21 +0000
parents cb8e0db81972
children fd12bdcf6901
files configure libdha/Makefile vidix/drivers/Makefile
diffstat 3 files changed, 2 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Oct 23 08:12:41 2006 +0000
+++ b/configure	Mon Oct 23 10:02:21 2006 +0000
@@ -7225,21 +7225,6 @@
   fi
 fi
 
-echocheck "compiler support for -fno-PIC"
-if x86; then
-cat > $TMPC <<EOF
-int main(void) { return 0; }
-EOF
-if cc_check -fno-PIC ; then
-  CFLAGS="-fno-PIC $CFLAGS"
-  echores "yes"
-else
-  echores "no"
-fi
-else
-  echores "only used for x86"
-fi
-
 echocheck "compiler support for noexecstack"
 cat > $TMPC <<EOF
 int main(void) { return 0; }
--- a/libdha/Makefile	Mon Oct 23 08:12:41 2006 +0000
+++ b/libdha/Makefile	Mon Oct 23 10:02:21 2006 +0000
@@ -29,7 +29,7 @@
 
 OBJS=$(SRCS:.c=.o)
 
-CFLAGS  = -I. -I.. $(OPTFLAGS) -fPIC
+CFLAGS  = -fPIC -I. -I.. $(OPTFLAGS)
 
 ifeq ($(TARGET_OS),OpenBSD)
 ifeq ($(TARGET_ARCH_X86),yes)
--- a/vidix/drivers/Makefile	Mon Oct 23 08:12:41 2006 +0000
+++ b/vidix/drivers/Makefile	Mon Oct 23 10:02:21 2006 +0000
@@ -6,7 +6,7 @@
 VIDIX_LIBS = -L../../libdha -ldha
 VIDIX_LIBS_M = $(VIDIX_LIBS) -lm
 VIDIX_LIBS_X = $(VIDIX_LIBS_M) $(X_LIB)
-VIDIX_CFLAGS= -I. -I.. $(OPTFLAGS) -fPIC
+VIDIX_CFLAGS = -fPIC -I. -I.. $(OPTFLAGS)
 
 RAGE128_CFLAGS=$(VIDIX_CFLAGS) -DRAGE128
 MGA_CRTC2_CFLAGS=$(VIDIX_CFLAGS) -DCRTC2