build/configure: Add support for --with-extra-ld-options flag (to provide extra
[oota-llvm.git] / Makefile.rules
index 71d4307abae0bbd08f963c00ff5a4726550b29e5..162fd235522f83059437ce3f5aa066f2d017655b 100644 (file)
@@ -582,6 +582,10 @@ endif
 # Options To Invoke Tools
 #----------------------------------------------------------
 
+ifdef EXTRA_LD_OPTIONS
+LD.Flags += $(EXTRA_LD_OPTIONS)
+endif
+
 ifndef NO_PEDANTIC
 CompileCommonOpts += -pedantic -Wno-long-long
 endif