Skip to content

Commit

Permalink
MINIFICPP-1757 remove problematic linker flags on macos/gcc
Browse files Browse the repository at this point in the history
Closes apache#1741
Signed-off-by: Martin Zink <martinzink@apache.org>
  • Loading branch information
szaszm authored and martinzink committed Mar 12, 2024
1 parent dd8e54e commit fc9e507
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/Extensions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ macro(register_extension extension-name extension-display-name extension-guard d
if(WIN32)
install(TARGETS ${extension-name} RUNTIME DESTINATION extensions COMPONENT ${component-name})
else()
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND NOT APPLE)
target_link_options(${extension-name} PRIVATE "-Wl,--disable-new-dtags")
endif()
if (APPLE)
Expand Down
2 changes: 1 addition & 1 deletion controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ set_target_properties(minificontroller PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

if (NOT WIN32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND NOT APPLE)
target_link_options(minificontroller PRIVATE "-Wl,--disable-new-dtags")
endif()
if (APPLE)
Expand Down
2 changes: 1 addition & 1 deletion encrypt-config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ set_target_properties(encrypt-config PROPERTIES OUTPUT_NAME encrypt-config)
set_target_properties(encrypt-config PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")

if (NOT WIN32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND NOT APPLE)
target_link_options(encrypt-config PRIVATE "-Wl,--disable-new-dtags")
endif()
if (APPLE)
Expand Down
2 changes: 1 addition & 1 deletion minifi_main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ else()
endif()

if (NOT WIN32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND NOT APPLE)
target_link_options(minifiexe PRIVATE "-Wl,--disable-new-dtags")
endif()
if (APPLE)
Expand Down

0 comments on commit fc9e507

Please sign in to comment.