]> www.vanbest.org Git - sasc-ng.git/commitdiff
Add patch to use LDFLAGS in upstream makefile
authorJan-Pascal van Best <janpascal@vanbest.org>
Fri, 29 Mar 2013 08:24:42 +0000 (09:24 +0100)
committerJan-Pascal van Best <janpascal@vanbest.org>
Fri, 29 Mar 2013 15:40:03 +0000 (16:40 +0100)
debian/patches/series
debian/patches/use-ldflags-in-makefiles.patch [new file with mode: 0644]

index ccad3e2f51ea5220eeb44d7e2fd5fd9d5ffd42a3..d56210fe9e96d82b2b4c9f2e1016a14108db91e6 100644 (file)
@@ -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 (file)
index 0000000..6283926
--- /dev/null
@@ -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