Skip to content

autotools: fix to update LDFLAGS for each detected dependency - #1384

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:test-autotools
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:test-autotools

Conversation

@vszakats

@vszakats vszakats commented May 8, 2024 •

Copy link
Copy Markdown
Member

autotools lib detection routine failed to extend LDFLAGS for each
detection. This could cause successful detection of a dependency, but
later failing to use it. This did not cause an issue as long as all
dependencies lived under the same prefix, but started breaking on macOS
ARM + Homebrew where this was no longer true for mbedTLS and zlib in
particular.

Follow-up to 8441153 #1381
Follow-up to ae2770d #1377
Closes #1384

@vszakats
vszakats marked this pull request as draft May 8, 2024 20:20
@vszakats

vszakats commented May 8, 2024

Copy link
Copy Markdown
Member Author

/cc @MichaelBuckley

@vszakats
vszakats marked this pull request as ready for review May 8, 2024 20:34
@vszakats vszakats changed the title ci: try autotools tweak 1 autotools: fix to update LDFLAGS for each detected dependency May 8, 2024
@MichaelBuckley

Copy link
Copy Markdown
Contributor

That works, and is much cleaner. Nice.

@MichaelBuckley
MichaelBuckley self-requested a review May 8, 2024 21:20
@vszakats vszakats closed this in d19b619 May 8, 2024
@vszakats
vszakats deleted the test-autotools branch May 8, 2024 21:46
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
autotools lib detection routine failed to extend LDFLAGS for each
detection. This could cause successful detection of a dependency, but
later failing to use it. This did not cause an issue as long as all
dependencies lived under the same prefix, but started breaking on macOS
ARM + Homebrew where this was no longer true for mbedTLS and zlib in
particular.

Follow-up to 8441153 libssh2#1381
Follow-up to ae2770d libssh2#1377
Closes libssh2#1384
vszakats added a commit to vszakats/libssh2 that referenced this pull request Jan 2, 2025
```
$ ../configure --with-openssl --without-libssl-prefix
[...]
../libtool: line 7756: cd: no/lib: No such file or directory
libtool:   error: cannot determine absolute directory name of 'no/lib'
make[2]: *** [libssh2.la] Error 1
```

Regression from d19b619 libssh2#1384

Reported-by: Christoph Reiter
Fixes libssh2#1505
vszakats added a commit that referenced this pull request Jan 2, 2025
Do not test the prefix when set to `no`.
(as with `--without-lib*-prefix`)

Before this patch this test was always made and when detected despite
the wrong prefix, the `no` prefix remained in `LDFLAGS` causing a build
failure later in `libtool`.

Fixes:
```
$ ../configure --without-libssl-prefix
[...]
../libtool: line 7756: cd: no/lib: No such file or directory
libtool:   error: cannot determine absolute directory name of 'no/lib'
make[2]: *** [libssh2.la] Error 1
```

Follow-up to d19b619 #1384

Reported-by: Christoph Reiter
Fixes #1505
Closes #1506
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