Re: Passing arguments into LDFLAGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/22/2010 02:08 PM, Paul F. Johnson wrote:
> Hi,
>
> I know I can do the likes of
>
> export CFLAGS="$CFLAGS -blah" and it will pass whatever CFLAGS is plus
> the argument "-blah" to the compiler.
>
> How do I do this with LDFLAGS.
Depends on a build-system's internals.

> I'm trying to pass --build-id using
>
> export LDFLAGS="$LDFLAGS --build-id"
In many cases, this is _the way_ how to do it.

Another possibility would be to add linker flags to CFLAGS.
Something similar to -Wl,<flags to pass to the linker>, c.f. man gcc for 
details.

> It's about the only way I can get mono to build currently!
... no clues about mono on my part.

... and I am not sure if --build-id is a linker option or a general GCC
option (This would mean it should be added to CFLAGS).

Ralf
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux