Skip to content

Autotools: Fix iconv shared build with external library#15686

Merged
petk merged 2 commits intophp:masterfrom
petk:patch-iconv-libs
Sep 1, 2024
Merged

Autotools: Fix iconv shared build with external library#15686
petk merged 2 commits intophp:masterfrom
petk:patch-iconv-libs

Conversation

@petk
Copy link
Member

@petk petk commented Sep 1, 2024

When building:

./configure --with-iconv=shared,/path/to/libiconv

the iconv couldn't be found due to linker error

Autoconf places LDFLAGS before the conftest.c file in the test compile command and LIBS after it. GCC also requires this.

Similar issue discovered at
remicollet/php-xpass#1

When building:

    ./configure --with-iconv=shared,/path/to/libiconv

the iconv couldn't be found due to linker error

Autoconf places LDFLAGS before the conftest.c file in the test compile
command and LIBS after it. GCC also requires this.

Similar issue discovered at
remicollet/php-xpass#1
@petk petk merged commit de66585 into php:master Sep 1, 2024
@petk petk deleted the patch-iconv-libs branch September 1, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants