From: Jan-Pascal van Best Date: Fri, 29 Mar 2013 08:24:42 +0000 (+0100) Subject: Add patch to use LDFLAGS in upstream makefile X-Git-Tag: debian/620-11~1 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=8c8603fca5f4570a97ac5cea14f55ebc85509cc1;p=sasc-ng.git Add patch to use LDFLAGS in upstream makefile --- diff --git a/debian/patches/series b/debian/patches/series index ccad3e2..d56210f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ always-assume-recent-kernel.patch use-proper-kernel-header-locations.patch +use-ldflags-in-makefiles.patch diff --git a/debian/patches/use-ldflags-in-makefiles.patch b/debian/patches/use-ldflags-in-makefiles.patch new file mode 100644 index 0000000..6283926 --- /dev/null +++ b/debian/patches/use-ldflags-in-makefiles.patch @@ -0,0 +1,13 @@ +diff --git a/contrib/sasc-ng/Makefile b/contrib/sasc-ng/Makefile +index aacd598..9c14bd1 100644 +--- a/contrib/sasc-ng/Makefile ++++ b/contrib/sasc-ng/Makefile +@@ -62,7 +62,7 @@ LIBS = -lpthread -lcrypto -lcrypt + all: $(TOOL) libscanwrap.so + + $(TOOL): $(OBJS) | sc-plugin +- $(CXX) $(CFLAGS) -o $(TOOL) $(SCLIBS) $(OBJS) $(LIBS) ++ $(CXX) $(CXXFLAGS) $(CFLAGS) -o $(TOOL) $(SCLIBS) $(OBJS) $(LIBS) $(LDFLAGS) + + libscanwrap.so: dvblb_plugins/scanwrap.c + $(CC) -fPIC -g -O2 -Wall -I. -nostdlib -shared -o $@ $< -ldl -lc