Browse Source

Enable remaining bits of hardening build

Christoph Biedl 5 years ago
parent
commit
c08c02eeb0
2 changed files with 17 additions and 0 deletions
  1. 1 0
      debian/patches/series
  2. 16 0
      debian/patches/use-ldflags-for-linking.patch

+ 1 - 0
debian/patches/series

@@ -11,3 +11,4 @@ increase-max-prefixes.patch
 # big test (see README.Debian)
 # big test (see README.Debian)
 enhance-test-script.patch
 enhance-test-script.patch
 fix-unaligned-memory-access.patch
 fix-unaligned-memory-access.patch
+use-ldflags-for-linking.patch

+ 16 - 0
debian/patches/use-ldflags-for-linking.patch

@@ -0,0 +1,16 @@
+Description: Pass LDFLAGS to bgpdump linkage
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Bug: https://bitbucket.org/ripencc/bgpdump/issues/50
+Last-Update: 2019-01-27
+
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -32,7 +32,7 @@
+ 	$(COMPILE) -o example example.c libbgpdump.a $(SYS_LIBS)
+ 
+ bgpdump: bgpdump.c libbgpdump.a
+-	$(COMPILE) -o bgpdump bgpdump.c libbgpdump.a $(SYS_LIBS)
++	$(COMPILE) $(LDFLAGS) -o bgpdump bgpdump.c libbgpdump.a $(SYS_LIBS)
+ 
+ check-clean:
+ 	rm -f test_out/*.bgp.gz