File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,14 @@ build:
1818 - CFLAGS
1919 - CXXFLAGS
2020 script : |
21+ # On Linux aarch64 builds we saw undefined pthread symbols (e.g. pthread_join)
22+ # unless we compile and link with -pthread. Autotools (HTSlib) only picks up
23+ # Conda headers and flags if CFLAGS/CXXFLAGS and LDFLAGS are exported.
24+ # On macOS x86 (SDK < 10.15), Clang’s availability annotations block newer
25+ # libc++ symbols (std::filesystem::path, etc.), so we disable those checks
26+ # with -D_LIBCPP_DISABLE_AVAILABILITY
2127 export CFLAGS="-pthread -I${PREFIX}/include $CFLAGS"
22- export CXXFLAGS="-pthread -I${PREFIX}/include $CXXFLAGS"
28+ export CXXFLAGS="-pthread -I${PREFIX}/include $CXXFLAGS -D_LIBCPP_DISABLE_AVAILABILITY "
2329 export LDFLAGS="-pthread ${LDFLAGS}"
2430
2531 cmake -S cpp/all -B build -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
You can’t perform that action at this time.
0 commit comments