llvm.org GIT mirror llvm / e2a91a7
build/configure: Add support for --with-extra-ld-options flag (to provide extra options just to pass to ld). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133206 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 8 years ago
3 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
121121
122122 # Extra options to compile LLVM with
123123 EXTRA_OPTIONS=@EXTRA_OPTIONS@
124
125 # Extra options to link LLVM with
126 EXTRA_LD_OPTIONS=@EXTRA_LD_OPTIONS@
124127
125128 # Endian-ness of the target
126129 ENDIAN=@ENDIAN@
580580 #----------------------------------------------------------
581581 # Options To Invoke Tools
582582 #----------------------------------------------------------
583
584 ifdef EXTRA_LD_OPTIONS
585 LD.Flags += $(EXTRA_LD_OPTIONS)
586 endif
583587
584588 ifndef NO_PEDANTIC
585589 CompileCommonOpts += -pedantic -Wno-long-long
830830 esac
831831 AC_SUBST(EXTRA_OPTIONS,$EXTRA_OPTIONS)
832832
833 dnl Specify extra linker build options
834 AC_ARG_WITH(extra-ld-options,
835 AS_HELP_STRING([--with-extra-ld-options],
836 [Specify additional options to link LLVM with]),,
837 withval=default)
838 case "$withval" in
839 default) EXTRA_LD_OPTIONS= ;;
840 *) EXTRA_LD_OPTIONS=$withval ;;
841 esac
842 AC_SUBST(EXTRA_LD_OPTIONS,$EXTRA_LD_OPTIONS)
843
833844 dnl Allow specific bindings to be specified for building (or not)
834845 AC_ARG_ENABLE([bindings],AS_HELP_STRING([--enable-bindings],
835846 [Build specific language bindings: all,auto,none,{binding-name} (default=auto)]),,