File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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++" )
Original file line number Diff line number Diff 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)
3434endif ()
You can’t perform that action at this time.
0 commit comments