From 2894b197a11526b95aa122f9200dbec4a27550e8 Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Thu, 28 Nov 2019 12:42:18 +0900 Subject: [PATCH] apply -Wl,-z,relro option in build flag for library build --- NativeLauncher/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NativeLauncher/CMakeLists.txt b/NativeLauncher/CMakeLists.txt index ccdc939..a7363f1 100644 --- a/NativeLauncher/CMakeLists.txt +++ b/NativeLauncher/CMakeLists.txt @@ -87,7 +87,7 @@ ENDIF(ASAN_ENABLED) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${EXTRA_CFLAGS_COMMON}") SET(EXTRA_CFLAGS_EXE "${EXTRA_CFLAGS} -fPIE") -SET(EXTRA_CFLAGS_LIB "${EXTRA_CFLAGS} -fPIC") +SET(EXTRA_CFLAGS_LIB "${EXTRA_CFLAGS} -fPIC -Wl,-z,relro") SET(EXTRA_CFLAGS_HYDRA "${EXTRA_CFLAGS_HYDRA} ${EXTRA_CFLAGS_COMMON}") SET(EXTRA_CFLAGS_HYDRA "${EXTRA_CFLAGS_HYDRA} -fPIE") -- 2.7.4