Re: Recommended way to pass CFLAGS/LDFLAGS through libtool

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

 



On 2018-04-09 03:59, Florian Weimer wrote:
> Is there a recommend way to get libtool to pass through all flags
> specified in CFLAGS and LDFLAGS unchanged, and have the GCC compiler
> driver sort out which flags to pass to the compiler/assembler/linker?

$ libtool --mode=compile --help
[snip]
This mode accepts the following additional options:
[snip]
  -Wc,FLAG          pass FLAG directly to the compiler

$ libtool --mode=link --help
[snip]
The following components of LINK-COMMAND are treated specially:
[snip]
  -Wc,FLAG
  -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
  -Wl,FLAG
  -Xlinker FLAG     pass linker-specific FLAG directly to the linker

But, often when this happens, it is the fault of a poorly written
configure.ac or Makefile.am.  Where exactly are you seeing an issue?

-- 
Yaakov Selkowitz
Software Engineer - Platform Enablement Group
Red Hat, Inc.
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[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