@@ -46,7 +46,7 @@ ifeq ($(V),1)
%: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS)
%.so:
- $(CC) -shared -o $@ $^
+ $(CC) -shared $(LDFLAGS) -o $@ $^
%.a:
$(AR) rcs $@ $^
clean::
@@ -76,7 +76,7 @@ else
@$(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS)
%.so:
@echo CC $@
- @$(CC) -shared -o $@ $^
+ @$(CC) -shared $(LDFLAGS) -o $@ $^
%.a:
@echo AR $@
@$(AR) rcs $@ $^
@@ -25,13 +25,13 @@ endif
all: alevt alevt-date alevt-cap alevt.1 alevt-date.1 alevt-cap.1
alevt: $(OBJS)
- $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS)
+ $(CC) $(OPT) $(OBJS) $(LDFLAGS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS)
alevt-date: $(TOBJS)
- $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB)
+ $(CC) $(OPT) $(TOBJS) $(LDFLAGS) -o alevt-date $(ZVBILIB)
alevt-cap: $(COBJS)
- $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS)
+ $(CC) $(OPT) $(COBJS) $(LDFLAGS) -o alevt-cap $(EXPLIBS)
font.o: font1.xbm font2.xbm font3.xbm font4.xbm
fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm
Based on patch by Tobias Grimm in Debian's dvb-apps 1.1.1+rev1500-1 package. Description: Use LDFLAGS passed in from dpkg-buildflags The alevt and lib binaries are not linked with the hardening options provided by dpkg-buildflags because LDFLAGS isn't used there. This patch simple adds the LDFLAGS to the Makefiles. Author: Tobias Grimm <etobi@debian.org> Date: Thu, 19 Sep 2013 23:04:58 +0200 Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> --- Make.rules | 4 ++-- util/alevt/Makefile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)