Skip to content

Commit fac4205

Browse files
committed
test fix
1 parent b07569d commit fac4205

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

conda-recipe/meta.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ build:
1818
- CFLAGS
1919
- CXXFLAGS
2020
script: |
21-
export CFLAGS="-D_GNU_SOURCE -I${PREFIX}/include $CFLAGS"
22-
export CXXFLAGS="-D_GNU_SOURCE -I${PREFIX}/include $CXXFLAGS"
21+
export CFLAGS="-pthread -D_GNU_SOURCE -I${PREFIX}/include $CFLAGS"
22+
export CXXFLAGS="-pthread -D_GNU_SOURCE -I${PREFIX}/include $CXXFLAGS"
23+
export LDFLAGS="-pthread ${LDFLAGS}"
2324
24-
cmake -S cpp/all -B build -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release
25+
cmake -S cpp/all -B build -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
2526
cmake --build build --parallel ${CPU_COUNT:-1}
2627
(cd build/test && ctest --output-on-failure)
2728
cmake --install build/standalone

0 commit comments

Comments
 (0)