[SCM] pd-readanysf/master: patch to always use -fPIC
zmoelnig-guest at users.alioth.debian.org
zmoelnig-guest at users.alioth.debian.org
Thu Feb 10 12:45:28 UTC 2011
The following commit has been merged in the master branch:
commit 31dbb01b4271919c52e35c4772f00e29da8c0734
Author: IOhannes m zmölnig <zmoelnig at iem.at>
Date: Thu Feb 10 13:38:13 2011 +0100
patch to always use -fPIC
diff --git a/debian/patches/makefile-fPIC.patch b/debian/patches/makefile-fPIC.patch
new file mode 100644
index 0000000..bdb3c65
--- /dev/null
+++ b/debian/patches/makefile-fPIC.patch
@@ -0,0 +1,30 @@
+Author: IOhannes m zmölnig
+Description: unconditionally use "-fPIC"
+upstream only uses "-fPIC" on 64bit architectures
+--- pd-readanysf.orig/Makefile
++++ pd-readanysf/Makefile
+@@ -18,16 +18,6 @@
+ endif
+
+ ##############################################
+-LBITS := $(shell getconf LONG_BIT)
+-ifeq ($(LBITS),64)
+- # do 64 bit stuff here, like set some PD_CXXFLAGS
+-PD_CXXFLAGS = -fPIC -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PDPATH) -Wall
+-else
+- # do 32 bit stuff here
+-PD_CXXFLAGS = -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PDPATH) -Wall
+-endif
+-
+-
+ ifeq ($(UNAME), Linux)
+ STRIP=strip --strip-unneeded
+ # optimizations?
+@@ -49,6 +39,7 @@
+ # -lSystem.B -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
+ endif
+
++PD_CXXFLAGS += -fPIC
+
+ PD_CXXFLAGS += $(CXXFLAGS)
+ PD_LDFLAGS += $(LDFLAGS)
diff --git a/debian/patches/series b/debian/patches/series
index cf662db..f5894f4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
makefile-objs-dir.patch
makefile-CFLAGS.patch
+makefile-fPIC.patch
--
pd-readanysf packaging
More information about the pkg-multimedia-commits
mailing list