1
0
Fork 0

Fix LTO in debug build

This commit is contained in:
Ilya Fedin 2022-10-14 09:43:02 +04:00 committed by John Preston
parent 3c98147427
commit 700a46e5db

View file

@ -62,7 +62,6 @@ if (NOT DESKTOP_APP_USE_PACKAGED)
target_link_options(common_options target_link_options(common_options
INTERFACE INTERFACE
-rdynamic -rdynamic
-fwhole-program
) )
endif() endif()
@ -74,6 +73,8 @@ if (NOT DESKTOP_APP_USE_PACKAGED OR DESKTOP_APP_SPECIAL_TARGET)
) )
target_link_options(common_options target_link_options(common_options
INTERFACE INTERFACE
$<$<CONFIG:Debug>:-fno-use-linker-plugin>
$<$<NOT:$<CONFIG:Debug>>:-fwhole-program>
-Wl,-z,relro -Wl,-z,relro
-Wl,-z,now -Wl,-z,now
# -pie # https://gitlab.gnome.org/GNOME/nautilus/-/issues/1601 # -pie # https://gitlab.gnome.org/GNOME/nautilus/-/issues/1601