File: snackmodule-fpic.patch

package info (click to toggle)
newt 0.52.14-11.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,548 kB
  • sloc: ansic: 9,098; python: 708; makefile: 235; sh: 14
file content (25 lines) | stat: -rw-r--r-- 1,483 bytes parent folder | download
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
Description: snackmodule.* must be compiled -fPIC for amd64, etc.
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655151
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2012-01-29
Forwarded: no


Index: newt-0.52.14/Makefile.in
===================================================================
--- newt-0.52.14.orig/Makefile.in	2012-01-29 14:46:19.000000000 +0000
+++ newt-0.52.14/Makefile.in	2012-01-29 14:59:00.000000000 +0000
@@ -83,10 +83,10 @@
 			PIFLAGS=`$$ver-config --includes`; \
 			PLDFLAGS=`$$ver-config --ldflags | sed -e 's/\-lpython[0-9.]*//'`; \
 			PLFLAGS=`$$ver-config --libs | sed -e 's/\-lpython[0-9.]*//'`; \
-	        $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\
-	        $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L.  -lnewt $(LIBS);\
+	        $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -fPIC -c -o $$ver/snackmodule.o snackmodule.c ;\
+	        $(CC) --shared -fPIC $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L.  -lnewt $(LIBS);\
                 $(CC) $(subst -O2,-O0,$(CFLAGS)) -I/usr/include/$${ver}_d -fPIC -c -o $$ver/snackmodule_d.o snackmodule.c ;\
-                $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule_d.so $$ver/snackmodule_d.o -L .  -lnewt  ;\
+                $(CC) --shared -fPIC  $(SHCFLAGS) -o $$ver/_snackmodule_d.so $$ver/snackmodule_d.o -L .  -lnewt  ;\
 	done || :
 	touch $@