Skip to content

Commit

Permalink
also look in sysroot
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jun 29, 2024
1 parent cc5880e commit d5397db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ outputs:
- test -f ${PREFIX}/bin/{{ old_triplet }}-g++
- test -f ${PREFIX}/bin/{{ triplet }}-g++
- CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++
- export LDFLAGS="$LDFLAGS -ldl" # [linux]
- export SYSROOT_LIB="$PREFIX/x86_64-conda-linux-gnu/sysroot/lib64" # [linux64]
- export SYSROOT_LIB="$PREFIX/aarch64-conda-linux-gnu/sysroot/lib64" # [aarch64]
- export SYSROOT_LIB="$PREFIX/powerpc64le-conda-linux-gnu/sysroot/lib64" # [ppc64le]
- export LDFLAGS="$LDFLAGS -L$SYSROOT_LIB -Wl,-rpath,$SYSROOT_LIB -ldl" # [linux]
- ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17 # [cross_target_platform != "win-64"]
- ${CXX} -Wall ${LDFLAGS} cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned # [cross_target_platform == target_platform and cross_target_platform != "win-64"]
- ${CXX} -Wall tests/hello_world.cpp -c -o hello_world.o --std=c++17
Expand Down

0 comments on commit d5397db

Please sign in to comment.