Skip to content

Commit

Permalink
don't set ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
theAeon committed Feb 12, 2024
1 parent ea298a9 commit c1ecadb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EXTRACXXFLAGS=$(echo "$RCXX"| sed -e "s/-std=[^ ]\{0,\}//")
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
CPPFLAGS=`"${R_HOME}/bin/R" CMD config --cppflags`
CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
LDFLAGS=`"${R_HOME}/bin/R" CMD config --ldflags`
R_LDFLAGS=`"${R_HOME}/bin/R" CMD config --ldflags`
FC=`"${R_HOME}/bin/R" CMD config FC`
FLIBS=`"${R_HOME}/bin/R" CMD config FLIBS`

Expand All @@ -36,5 +36,6 @@ $CMAKE ../tools \
-DCMAKE_C_COMPILER="$CC" \
-DCMAKE_CXX_COMPILER="$CXX" \
-DR_HOME="$R_HOME"
-DR_LDFLAGS=$R_LDFLAGS

echo "" >> _deps/highfive-src/include/highfive/bits/H5Friends.hpp
2 changes: 2 additions & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ find_package(R REQUIRED)
add_library(RcppPlanc SHARED "${PROJECT_SOURCE_DIR}/../src/rcppplanc_nmf.cpp" "${PROJECT_SOURCE_DIR}/../src/RcppExports.cpp" "${PROJECT_SOURCE_DIR}/../src/conversion.cpp" "${PROJECT_SOURCE_DIR}/../src/common/detect_blas.c" $<$<BOOL:${WIN32}>:${PROJECT_SOURCE_DIR}/../src/RcppPlanc-win.def>)
if(WIN32)
target_link_options(RcppPlanc PRIVATE -static-libgcc $<$<CONFIG:RELEASE>:-s> $<$<CONFIG:RELWITHDEBINFO>:-s>)
else()
target_link_directories(RcppPlanc PRIVATE ${R_LDFLAGS})
endif()
set_target_properties(RcppPlanc PROPERTIES PREFIX "")
if(APPLE)
Expand Down

0 comments on commit c1ecadb

Please sign in to comment.