diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-10-09 10:16:49 +0000 |
|---|---|---|
| committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2023-10-09 10:16:49 +0000 |
| commit | 3677983542cc09a0e5f085e463a895e9e4dce9aa (patch) | |
| tree | c0dda30e577d9549ed20fd387dd1b52e2b51e375 | |
| parent | f9358bd7386a2acbba626e9fffd3c216599e1114 (diff) | |
devel/onetbb: fix build with lld 17
Many symbols in the linker version scripts are undefined because link
time optimization (-flto=thin) removes them. Suppress errors with
lld >= 17 due to these undefined symbols.
PR: 274337
Reported by: dim
| -rw-r--r-- | devel/onetbb/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/onetbb/Makefile b/devel/onetbb/Makefile index ae0022a7ae78..4b4eaccf0be0 100644 --- a/devel/onetbb/Makefile +++ b/devel/onetbb/Makefile @@ -18,6 +18,11 @@ CMAKE_ARGS+= -DTBB_STRICT:BOOL=FALSE \ -DCMAKE_HWLOC_2_LIBRARY_PATH:PATH="${LOCALBASE}/lib/libhwloc.so" \ -DCMAKE_HWLOC_2_INCLUDE_PATH:PATH="${LOCALBASE}/include" +# Many symbols in the linker version scripts are undefined because link time +# optimization (-flto=thin) removes them. Suppress errors with lld >= 17 due to +# these undefined symbols. +LDFLAGS+= -Wl,--undefined-version + CONFLICTS= tbb USE_GITHUB= yes |
