[sr #111202] Libtool strips -static flag from CFLAGS

Ileana Dumitrescu <[email protected]> Fri, 28 Feb 2025 12:15:26 -0500 (EST)
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
--8323329-1102767541-1740762926=:4129567
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Follow-up Comment #2, sr #111202 (group libtool):=0A=0AThank you for your b=
ug report.=0A=0AIt looks like you are trying to create a standalone binary,=
 which means you=0Ashould link with the '-all-static' flag. Libtool static =
library/binary linking=0Ais different depending on a variety of factors, wh=
ich is documented in the=0Amanual. Here is the list of link options:=0A  ht=
tps://www.gnu.org/software/libtool/manual/libtool.html#Link-mode-1=0A=0AYou=
 should see -all-static, -static-libtool-libs, and -static. If you would=0A=
like to see some examples, you can run the following after building libtool=
:=0A  make check TESTSUITEFLAGS=3D"-d -k 'static linking flags for programs=
'"=0A=0AThe test results will be located in a numbered subdirectory of=0Ate=
sts/testsuite.dir/.=0A=0A=0A    ___________________________________________=
____________=0A=0AReply to this item at:=0A=0A  <https://savannah.gnu.org/s=
upport/?111202>=0A=0A_______________________________________________=0AMess=
age sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1102767541-1740762926=:4129567
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ8HvLgAKCRCqLAuaBUf3
TjVxAP0TH4HlPJLgfibVKVV/Y7ARbx9v2AbKIQS1ghrGicqfpAD+NN0M1nEigrlK
Kx9HUrsA6yIySZ3QvHsji8uyyylrIQI=
=pWkt
-----END PGP SIGNATURE-----

--8323329-1102767541-1740762926=:4129567--