Skip to content

Commit

Permalink
include sysroot in linker search path (-L) (#33)
Browse files Browse the repository at this point in the history
Co-authored-by: Marc-André Moreau <mamoreau@devolutions.net>
  • Loading branch information
awakecoding and Marc-André Moreau authored Feb 14, 2025
1 parent ea830db commit 6cd57d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/linux.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ set(CROSS_LIBSTDCPP_INC_DIR "/usr/include/c++/${CROSS_GCC_VERSION}")
set(CROSS_LIBSTDCPPBITS_INC_DIR "${CROSS_LIBSTDCPP_INC_DIR}/${CROSS_TARGET}")
set(CROSS_LIBGCC_DIR "${LIBGCC_DIR}/${CROSS_TARGET}/${CROSS_GCC_VERSION}")
set(CROSS_COMPILER_FLAGS "-iwithsysroot ${CROSS_MULTIARCH_INC_DIR}")
set(CROSS_LINKER_FLAGS "-fuse-ld=lld -stdlib=libstdc++ -L \"${CROSS_LIBGCC_DIR}\"")
set(CROSS_LINKER_FLAGS "-fuse-ld=lld -stdlib=libstdc++ -L \"${CMAKE_SYSROOT}/${CROSS_LIBGCC_DIR}\"")
set(CMAKE_AR "${LLVM_PREFIX}/bin/llvm-ar" CACHE FILEPATH "" FORCE)
set(CMAKE_NM "${LLVM_PREFIX}/bin/llvm-nm" CACHE FILEPATH "" FORCE)
set(CMAKE_RANLIB "${LLVM_PREFIX}/bin/llvm-ranlib${EXE_SUFFIX}" CACHE FILEPATH "" FORCE)
Expand Down

0 comments on commit 6cd57d2

Please sign in to comment.