On Wed, 17 Dec 2025, Esteve Varela Colominas wrote:

> Currently, --enable-static and --enable-shared are filtered by this
> script. Trying to override a build system's wishes by appending
> --enable-shared, resulted in the following command-line:
> 
>     ./configure --disable-shared --enable-shared
> 
> Due to the current behavior of the script, this causes the
> build_libtool_libs variable in the generated `libtool` scripts to be
> turned off, resulting in a franken-shared gcc build where shared
> libraries are enabled, but none of the internal libraries (e.g. libgomp)
> are built as .so files.
> 
> To test the change in behavior, one can do the following:
> 
>     rm -rf tmp; mkdir tmp
>     cd tmp
>     ../libgomp/configure --disable-shared --enable-shared
>     grep build_libtool_libs libtool | head -n1
> 
> Before this change, build_libtool_libs will be set to `no`. After this
> change, it will be `yes`.
> 
> ChangeLog:
> 
>       * config-ml.in: Replicate the filtering logic used with
>       --enable-{static,shared} for the --disable equivalents.

OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to