curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Having issue adding -static-intel to build

From: Daniel Stenberg via curl-users <>
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 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!

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
Received on 2020-06-11