From: Kees Cook Date: Sat, 12 Apr 2014 17:44:22 +0000 (+0100) Subject: build-ldflags X-Git-Tag: archive/raspbian/2.4.2-2+rpi1~1^2^2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d1447b1722be0d0ab5281142e94a74578c166102;p=libseccomp.git build-ldflags Gbp-Pq: Name build-ldflags.patch --- diff --git a/macros.mk b/macros.mk index a341c67..67d2174 100644 --- a/macros.mk +++ b/macros.mk @@ -137,7 +137,7 @@ COMPILE += $(GCC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<; ifeq ($(V),0) COMPILE_EXEC = @echo " CC $@"; endif -COMPILE_EXEC += $(GCC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(LDFLAGS); +COMPILE_EXEC += $(GCC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< $(LIBFLAGS); ifeq ($(V),0) ARCHIVE = @echo " AR $@"; diff --git a/tests/Makefile b/tests/Makefile index 5fdbca7..ed912b6 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -34,7 +34,7 @@ include $(TOPDIR)/configure.mk OBJS = util.o -LDFLAGS := ../src/libseccomp.a $(OBJS) +LIBFLAGS := ../src/libseccomp.a $(OBJS) TEST_PRIVATE = 00-test diff --git a/tools/Makefile b/tools/Makefile index 79c7d25..24dbd78 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -32,7 +32,7 @@ include ../macros.mk include $(TOPDIR)/configure.mk include $(TOPDIR)/install.mk -LDFLAGS := ../src/libseccomp.a +LIBFLAGS := ../src/libseccomp.a TOOLS = scmp_bpf_disasm \ scmp_bpf_sim \