Skip to content

Autotools: Fix iconv shared build with external library #15686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 1, 2024

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
1 of 2 checks passed
@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