Re: Having issue adding -static-intel to build
Date: Thu, 11 Jun 2020 16:58:16 +0200 (CEST)
On Wed, 10 Jun 2020, Jason Kenny via curl-users wrote:
> I am having difficultly providing a LDFLAGS override or even modifying the
> automake files correctly to add a -static-intel link flag when using the
> intel compiler.
>
> I know basic automake logic. However I have not had any success with
> modification that would normally work in other automake projects. Can
> someone provide my advice on how to modify the build files correctly or how
> to add a on the CLI extra LDFLAGS? I would like to add -static-intel to
> allow the build of curl to run without depends on various Intel libraries
> .so files at runtime.
So I presume then it doesn't work with...
LDFLAGS=-static-intel ./configure
?
> Also as a side note I found the build system current tries to add
> -shared-intel to the CFLAGS when it detects icc as the compiler. This is a
> link flags not a compiler c or cpp flag. It currently has no effect on the
> build as by default the intel compiler does a -shared-intel.
That icc logic in configure.ac is more than a decade old. I don't think anyone
has maintained it for a long time so it's possible that it does more harm than
good these days.
Fell free to help us improve in this area!
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ----------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2020-06-11