[llvm-commits] [llvm] r133206 - in /llvm/trunk: Makefile.config.in Makefile.rules autoconf/configure.ac

Daniel Dunbar daniel at zuster.org
Tue Jun 21 13:05:16 PDT 2011


On Thu, Jun 16, 2011 at 4:03 PM, Eric Christopher <echristo at apple.com> wrote:
>
> On Jun 16, 2011, at 3:30 PM, Daniel Dunbar wrote:
>
>> Author: ddunbar
>> Date: Thu Jun 16 17:30:38 2011
>> New Revision: 133206
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=133206&view=rev
>> Log:
>> build/configure: Add support for --with-extra-ld-options flag (to provide extra
>> options just to pass to ld).
>>
>
> LDFLAGS doesn't work? Or do we erroneously override it?

Didn't work for me. At least, I couldn't find a way to get what I
wanted which was add a set of flags that *only* get passed to the link
lines.

 - Daniel

>
> -eric
>
>> Modified:
>>    llvm/trunk/Makefile.config.in
>>    llvm/trunk/Makefile.rules
>>    llvm/trunk/autoconf/configure.ac
>>
>> Modified: llvm/trunk/Makefile.config.in
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.config.in?rev=133206&r1=133205&r2=133206&view=diff
>> ==============================================================================
>> --- llvm/trunk/Makefile.config.in (original)
>> +++ llvm/trunk/Makefile.config.in Thu Jun 16 17:30:38 2011
>> @@ -123,6 +123,9 @@
>> # 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@
>>
>>
>> Modified: llvm/trunk/Makefile.rules
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=133206&r1=133205&r2=133206&view=diff
>> ==============================================================================
>> --- llvm/trunk/Makefile.rules (original)
>> +++ llvm/trunk/Makefile.rules Thu Jun 16 17:30:38 2011
>> @@ -582,6 +582,10 @@
>> # Options To Invoke Tools
>> #----------------------------------------------------------
>>
>> +ifdef EXTRA_LD_OPTIONS
>> +LD.Flags += $(EXTRA_LD_OPTIONS)
>> +endif
>> +
>> ifndef NO_PEDANTIC
>> CompileCommonOpts += -pedantic -Wno-long-long
>> endif
>>
>> Modified: llvm/trunk/autoconf/configure.ac
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=133206&r1=133205&r2=133206&view=diff
>> ==============================================================================
>> --- llvm/trunk/autoconf/configure.ac (original)
>> +++ llvm/trunk/autoconf/configure.ac Thu Jun 16 17:30:38 2011
>> @@ -831,6 +831,17 @@
>> 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)]),,
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>




More information about the llvm-commits mailing list