]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/Source/C: take EXTRA_LDFLAGS from the caller
authorLaszlo Ersek <lersek@redhat.com>
Wed, 25 Jul 2018 23:24:40 +0000 (01:24 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 16 Aug 2018 18:18:57 +0000 (20:18 +0200)
Allow the caller of the top-level makefile either to set EXTRA_LDFLAGS in
the environment or to pass EXTRA_LDFLAGS as a macro definition on the
command line. EXTRA_LDFLAGS extends (and potentially overrides) default
link-editing flags set in the makefiles.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1540244
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/Makefiles/header.makefile

index 1b4cad5497ecee87cfddc6dcc099051e39560a3f..7f283d6464a81e6dc6c9c4a216f539f9d2c5eeec 100644 (file)
@@ -99,6 +99,9 @@ endif
 BUILD_CFLAGS   += $(BUILD_OPTFLAGS)\r
 BUILD_CXXFLAGS += $(BUILD_OPTFLAGS)\r
   \r
+# keep EXTRA_LDFLAGS last\r
+BUILD_LFLAGS += $(EXTRA_LDFLAGS)\r
+\r
 .PHONY: all\r
 .PHONY: install\r
 .PHONY: clean\r