Skip to content

Commit 75f1481

Browse files
Gnimucstaticfloatgiordano
authored
Mention parse_dl_name_version in Troubleshooting (#925)
Co-authored-by: Elliot Saba <[email protected]> Co-authored-by: Mosè Giordano <[email protected]>
1 parent 9ea88e5 commit 75f1481

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/troubleshooting.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ The build environment provided by `BinaryBuilder` is a `x86_64-linux-musl`, and
8787

8888
This is one of worst cases when cross-compiling, and there isn't a simple solution. You have to look into the build process to see if running the executable can be skipped (see for example the patch to not run `dot` in [#351](https://github.com/JuliaPackaging/Yggdrasil/pull/351)), or replaced by something else. If the executable is a compile-time only utility, try to build it with the native compiler (see for example the patch to build a native `mkdefs` in [#351](https://github.com/JuliaPackaging/Yggdrasil/pull/351))
8989

90+
### Multiple library names for different platforms
91+
Since some projects use different libnames for different platforms, when passing multiple libnames to `LibraryProduct`, you can use `parse_dl_name_version` to query the libname, for example:
92+
93+
```
94+
julia> using Base.BinaryPlatforms
95+
96+
julia> parse_dl_name_version("sfml-audio-2.dll", "windows")[1]
97+
"sfml-audio"
98+
```
99+
90100
## PowerPC Linux
91101

92102
### Shared library not built

0 commit comments

Comments
 (0)