Package: pdp / 1:0.14.1+darcs20180201-6

hardening.patch Patch series | 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
Author: IOhannes m zmölnig
Descriptions: allow pdp to be compiled with hardening flags
--- pd-pdp.orig/scaf/Makefile
+++ pd-pdp/scaf/Makefile
@@ -27,7 +27,7 @@
 
 pdp_scaf.pd_linux: pdp_scaf_all
 	rm -f pdp_scaf.pd_linux
-	gcc -rdynamic -shared -o pdp_scaf.pd_linux pdp/*.o $(PDP_CA_LIBS)
+	gcc -rdynamic -shared -o pdp_scaf.pd_linux pdp/*.o $(PDP_CA_LIBS) $(LDFLAGS)
 
 install: all
 	install -d $(prefix)/lib/scaf
--- pd-pdp.orig/Makefile
+++ pd-pdp/Makefile
@@ -26,7 +26,7 @@
 
 linux: pdp_all
 	rm -f pdp.pd_linux
-	$(CC) -rdynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS)
+	$(CC) -rdynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS) $(LDFLAGS)
 
 linux_mmx: linux
 linux_gcc_mmx: linux