diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2011-06-16 22:30:38 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2011-06-16 22:30:38 +0000 |
| commit | 0315d4a335ad2a2dcec2d03daad468266963e1e6 (patch) | |
| tree | cc5408285fcadacbe13defa715f7dec20455c502 /llvm | |
| parent | 48904e0cb76aad29f2cc79b7ccee17d98ac09cca (diff) | |
| download | bcm5719-llvm-0315d4a335ad2a2dcec2d03daad468266963e1e6.tar.gz bcm5719-llvm-0315d4a335ad2a2dcec2d03daad468266963e1e6.zip | |
build/configure: Add support for --with-extra-ld-options flag (to provide extra
options just to pass to ld).
llvm-svn: 133206
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/Makefile.config.in | 3 | ||||
| -rw-r--r-- | llvm/Makefile.rules | 4 | ||||
| -rw-r--r-- | llvm/autoconf/configure.ac | 11 |
3 files changed, 18 insertions, 0 deletions
diff --git a/llvm/Makefile.config.in b/llvm/Makefile.config.in index 5c737580632..9bdb07563f5 100644 --- a/llvm/Makefile.config.in +++ b/llvm/Makefile.config.in @@ -123,6 +123,9 @@ TARGET_TRIPLE=@target@ # Extra options to compile LLVM with EXTRA_OPTIONS=@EXTRA_OPTIONS@ +# Extra options to link LLVM with +EXTRA_LD_OPTIONS=@EXTRA_LD_OPTIONS@ + # Endian-ness of the target ENDIAN=@ENDIAN@ diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 71d4307abae..162fd235522 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -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 diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index 3d2faa3f2db..a39a6857c26 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/autoconf/configure.ac @@ -831,6 +831,17 @@ case "$withval" in esac AC_SUBST(EXTRA_OPTIONS,$EXTRA_OPTIONS) +dnl Specify extra linker build options +AC_ARG_WITH(extra-ld-options, + AS_HELP_STRING([--with-extra-ld-options], + [Specify additional options to link LLVM with]),, + withval=default) +case "$withval" in + default) EXTRA_LD_OPTIONS= ;; + *) EXTRA_LD_OPTIONS=$withval ;; +esac +AC_SUBST(EXTRA_LD_OPTIONS,$EXTRA_LD_OPTIONS) + dnl Allow specific bindings to be specified for building (or not) AC_ARG_ENABLE([bindings],AS_HELP_STRING([--enable-bindings], [Build specific language bindings: all,auto,none,{binding-name} (default=auto)]),, |

