summaryrefslogtreecommitdiff
blob: adb0a7e262f7a16f69a506149b58eafa9cf27b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
diff -uNr plt-orig/collects/make/setup-extension.ss plt/collects/make/setup-extension.ss
--- plt-orig/collects/make/setup-extension.ss	2006-01-11 04:15:52.000000000 -0500
+++ plt/collects/make/setup-extension.ss	2006-02-10 13:02:05.000000000 -0500
@@ -191,7 +191,7 @@
            current-extension-linker-flags 
            (if is-win?
                null
-               (list (format "-L~a/lib" (path->string sys-path))))
+               (list "-fPIC" (format "-L~a/lib" (path->string sys-path))))
            
            ;; Add libs for Windows:
            (with-new-flags
diff -uNr plt-orig/src/foreign/Makefile.in plt/src/foreign/Makefile.in
--- plt-orig/src/foreign/Makefile.in	2006-01-11 04:15:20.000000000 -0500
+++ plt/src/foreign/Makefile.in	2006-02-10 13:03:07.000000000 -0500
@@ -3,7 +3,7 @@
 srcdir = @srcdir@
 builddir = @builddir@
 CC = @CC@
-CFLAGS = @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ @PROFFLAGS@ @OPTIONS@ @MZOPTIONS@ \
+CFLAGS = @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ @PROFFLAGS@ @OPTIONS@ @MZOPTIONS@ -fPIC \
          -I$(builddir)/../mzscheme \
          -I$(srcdir)/../mzscheme/include -I$(srcdir)/../mzscheme/src \
          -Igcc/libffi/include
diff -uNr plt-orig/src/mzscheme/dynsrc/Makefile.in plt/src/mzscheme/dynsrc/Makefile.in
--- plt-orig/src/mzscheme/dynsrc/Makefile.in	2006-01-11 04:15:36.000000000 -0500
+++ plt/src/mzscheme/dynsrc/Makefile.in	2006-02-10 13:03:07.000000000 -0500
@@ -16,10 +16,10 @@
 CFLAGS = @CFLAGS@ @COMPFLAGS@ @PREFLAGS@ -I$(builddir)/.. -I$(srcdir)/../include -I$(srcdir)/../src @MZOPTIONS@
 
 dynlib:
-	$(MAKE) ../mzdyn.o
+	$(MAKE) CFLAGS="$(CFLAGS) -fPIC" ../mzdyn.o
 
 dynlib3m:
-	$(MAKE) ../mzdyn3m.o
+	$(MAKE) CFLAGS="$(CFLAGS) -fPIC" ../mzdyn3m.o
 
 dynexample:
 	$(MAKE) ../dynexmpl.so
diff -uNr plt-orig/src/mzscheme/gc/Makefile.in plt/src/mzscheme/gc/Makefile.in
--- plt-orig/src/mzscheme/gc/Makefile.in	2006-01-11 04:15:36.000000000 -0500
+++ plt/src/mzscheme/gc/Makefile.in	2006-02-10 13:03:07.000000000 -0500
@@ -10,7 +10,7 @@
 #      	 and runs some tests of collector and cords.  Does not add cords or
 #	 c++ interface to gc.a
 # cord/de - builds dumb editor based on cords.
-ABI_FLAG= 
+ABI_FLAG= -fPIC
 CC= @CC@ $(ABI_FLAG)
 CXX= @CXX@ $(ABI_FLAG)
 AS= @AS@ $(ABI_FLAG)
diff -uNr plt-orig/src/mzscheme/gc2/Makefile.in plt/src/mzscheme/gc2/Makefile.in
--- plt-orig/src/mzscheme/gc2/Makefile.in	2006-01-11 04:15:37.000000000 -0500
+++ plt/src/mzscheme/gc2/Makefile.in	2006-02-10 13:03:07.000000000 -0500
@@ -13,7 +13,7 @@
 ARFLAGS = @ARFLAGS@
 RANLIB = @RANLIB@
 
-CPPFLAGS = @PREFLAGS@ @OPTIONS@ @GC2OPTIONS@ @MZOPTIONS@ -I$(builddir)/.. -I$(srcdir)/../include
+CPPFLAGS = @PREFLAGS@ -fPIC @OPTIONS@ @GC2OPTIONS@ @MZOPTIONS@ -I$(builddir)/.. -I$(srcdir)/../include
 CFLAGS = @CFLAGS@ $(CPPFLAGS) @COMPFLAGS@ @PROFFLAGS@
 LIBS = @LIBS@