From 8c8603fca5f4570a97ac5cea14f55ebc85509cc1 Mon Sep 17 00:00:00 2001 From: Jan-Pascal van Best Date: Fri, 29 Mar 2013 09:24:42 +0100 Subject: [PATCH] Add patch to use LDFLAGS in upstream makefile --- debian/patches/series | 1 + debian/patches/use-ldflags-in-makefiles.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 debian/patches/use-ldflags-in-makefiles.patch 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 -- 2.39.5