aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-07-16 17:00:11 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-07-21 22:18:35 +0200
commitbb0babd7054bed7edfd9f4d6b20cdba864de1830 (patch)
treec1978d5c25bd4a998fc9eff4d5901ec64616cd8c /Makefile
parentb396bbad100a7493691d09b8dceba91e3cd28e2e (diff)
downloadffmpeg-bb0babd7054bed7edfd9f4d6b20cdba864de1830.tar.gz
build: Support executable only ldflags
The options is useful to build position-independent executables on hardened systems (e.g. Android L and Gentoo Hardened).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6302997d39..99d324008f 100644
--- a/Makefile
+++ b/Makefile
@@ -104,7 +104,7 @@ FF_DEP_LIBS := $(DEP_LIBS)
all: $(AVPROGS)
$(TOOLS): %$(EXESUF): %.o $(EXEOBJS)
- $(LD) $(LDFLAGS) $(LD_O) $^ $(ELIBS)
+ $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $^ $(ELIBS)
tools/cws2fws$(EXESUF): ELIBS = $(ZLIB)
@@ -149,7 +149,7 @@ endef
$(foreach P,$(PROGS),$(eval $(call DOPROG,$(P:$(EXESUF)=))))
$(PROGS): %$(EXESUF): %.o $(FF_DEP_LIBS)
- $(LD) $(LDFLAGS) $(LD_O) $(OBJS-$*) $(FF_EXTRALIBS)
+ $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(OBJS-$*) $(FF_EXTRALIBS)
OBJDIRS += tools