diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-07-16 17:00:11 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-07-21 22:18:35 +0200 |
commit | bb0babd7054bed7edfd9f4d6b20cdba864de1830 (patch) | |
tree | c1978d5c25bd4a998fc9eff4d5901ec64616cd8c /Makefile | |
parent | b396bbad100a7493691d09b8dceba91e3cd28e2e (diff) | |
download | ffmpeg-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |