Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 12a7aba4be6828a2ee84109e93271369 > files > 3

ming-0.3.0-5mdv2008.0.src.rpm

diff -Naur ming-0.3.0beta2/src/actioncompiler/Makefile ming-0.3.0beta2.oden/src/actioncompiler/Makefile
--- ming-0.3.0beta2/src/actioncompiler/Makefile	2005-03-28 00:06:18.000000000 +0200
+++ ming-0.3.0beta2.oden/src/actioncompiler/Makefile	2006-02-07 04:05:32.000000000 +0100
@@ -1,6 +1,6 @@
 include ../../Makefile.config
 
-CFLAGS += -I..
+CFLAGS += -fPIC -I..
 DEBUG = --debug
 
 # In case we need to get more information out of flex
diff -Naur ming-0.3.0beta2/src/blocks/Makefile ming-0.3.0beta2.oden/src/blocks/Makefile
--- ming-0.3.0beta2/src/blocks/Makefile	2005-03-28 00:06:18.000000000 +0200
+++ ming-0.3.0beta2.oden/src/blocks/Makefile	2006-02-07 04:05:51.000000000 +0100
@@ -1,6 +1,6 @@
 include ../../Makefile.config
 
-CFLAGS += -I..
+CFLAGS += -fPIC -I..
 
 OFILES = \
 	action.o \
diff -Naur ming-0.3.0beta2/src/Makefile ming-0.3.0beta2.oden/src/Makefile
--- ming-0.3.0beta2/src/Makefile	2005-11-29 00:09:42.000000000 +0100
+++ ming-0.3.0beta2.oden/src/Makefile	2006-02-07 04:05:01.000000000 +0100
@@ -1,5 +1,7 @@
 include ../Makefile.config
 
+CFLAGS+= -fPIC
+
 OFILES = \
 	blocklist.o \
 	displaylist.o \
@@ -32,7 +34,7 @@
 $(SHAREDLIB): $(OFILES)
 	cd blocks && $(MAKE) CFLAGS="$(CFLAGS) -I.."
 	cd actioncompiler && $(MAKE) CFLAGS="$(CFLAGS) -I.."
-	$(CC) $(OFILES) $(COMPILEROFILES) $(LDFLAGS) $(EXTRA_LIBS) blocks/*.o $(SHLIBLDFLAGS) -o $(SHAREDLIB)
+	$(CC) $(CFLAGS) $(OFILES) $(COMPILEROFILES) $(LDFLAGS) $(EXTRA_LIBS) blocks/*.o $(SHLIBLDFLAGS) -o $(SHAREDLIB)
 	cp $(SHAREDLIB) ..
 	ln -fs $(SHAREDLIB) ../libming$(NOVAR_SHLIBEXT)
 	ln -fs $(SHAREDLIB) ../libming$(SHORT_SHLIBEXT)