Skip to content

Commit

Permalink
Revert "[cmake] Xcode 14 warns about -undefined dynamic_lookup; sim…
Browse files Browse the repository at this point in the history
…ply suppress:"

See root-project/root#11937
for why `-flat_namespace` is bad.

This reverts commit a05d4beded1481a86a65e450826352eb528b03e7.
  • Loading branch information
Axel-Naumann authored and jenkins committed Jan 19, 2023
1 parent feb0db3 commit 0c98219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/plugins/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ endif()

set_target_properties(clingDemoPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ".")
if(APPLE)
target_link_libraries(clingDemoPlugin PUBLIC -Wl,-bind_at_load -Wl,-flat_namespace -Wl,-undefined -Wl,suppress)
target_link_libraries(clingDemoPlugin PUBLIC -Wl,-bind_at_load -Wl,-undefined -Wl,dynamic_lookup)
elseif(NOT MSVC)
target_link_libraries(clingDemoPlugin PUBLIC -Wl,--unresolved-symbols=ignore-in-object-files)
endif()
Expand Down

0 comments on commit 0c98219

Please sign in to comment.