Skip to content

Commit 1d53a58

Browse files
author
Roberto Di Remigio
committed
Merge branch 'master' of github.com:PCMSolver/pcmsolver
2 parents 2b3a36d + 74aef81 commit 1d53a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/custom/static_library.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if(ENABLE_GENERIC)
4444
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc")
4545
endif()
4646
if(CMAKE_C_COMPILER_ID MATCHES Intel)
47-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -static-intel -wd10237")
47+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--as-needed -static-libstdc++ -static-libgcc -static-intel -wd10237")
4848
endif()
4949
if(CMAKE_C_COMPILER_ID MATCHES Clang)
5050
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++")

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if(NOT STATIC_LIBRARY_ONLY)
2828
set_target_properties(pcm-base PROPERTIES POSITION_INDEPENDENT_CODE 1
2929
INTERPROCEDURAL_OPTIMIZATION 1)
3030
add_library(pcm-shared SHARED $<TARGET_OBJECTS:pcm-base> $<TARGET_OBJECTS:getkw>)
31-
target_link_libraries(pcm-shared ${ZLIB_LIBRARIES})
31+
target_link_libraries(pcm-shared ${ZLIB_LIBRARIES} ${LIBC_INTERJECT})
3232
set_target_properties(pcm-shared PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR} CLEAN_DIRECT_OUTPUT 1 OUTPUT_NAME "pcm")
3333
install(TARGETS pcm-shared DESTINATION lib)
3434
endif()

0 commit comments

Comments
 (0)