Skip to content

Commit 51dc2e0

Browse files
authored
[Docs] Clarify how to let the linker find libraries in libdir (#1024)
1 parent 937c7af commit 51dc2e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/troubleshooting.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ If instead the project uses CMake you'll need to use a different environment var
2525

2626
### Libraries of the dependencies can't be found
2727

28-
Like in the section above, it may happen that the build system fails to find the libraries of the dependencies, even when they're installed to the right place. In these case, you have to inform the linker where the libraries are by setting the `LDFLAGS` environment variable:
28+
Like in the section above, it may happen that the build system fails to find the libraries of the dependencies, even when they're installed to the right place, i.e. in the `${libdir}` directory. In these cases, you have to inform the linker where the libraries are by passing the option `-L${libdir}`. The details of how to do that depend on the specific build system in use.
2929

30+
For Autotools- and CMake-based builds, you can the set the `LDFLAGS` environment variable:
3031
```sh
3132
export LDFLAGS="-L${libdir}"
3233
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
3334
make -j${nprocs}
3435
make install
3536
```
3637

37-
See for example [libwebp](https://github.com/JuliaPackaging/Yggdrasil/blob/9a1ae803823e0dba7628bc71ff794d0c79e39c95/L/libwebp/build_tarballs.jl#L19-L21) build script (in this case this was needed only when building for FreeBSD).
38+
See for example [libwebp](https://github.com/JuliaPackaging/Yggdrasil/blob/dd1d1d0fbe6fee41806691e11b900961f9001a81/L/libwebp/build_tarballs.jl#L19-L21) build script (in this case this was needed only when building for FreeBSD).
3839

3940
### Old Autoconf helper scripts
4041

0 commit comments

Comments
 (0)