We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe565cc commit 91d83d6Copy full SHA for 91d83d6
cmake/DaemonFlags.cmake
@@ -381,6 +381,8 @@ else()
381
# Don't set _FORTIFY_SOURCE in debug builds.
382
endif()
383
384
+ try_c_cxx_flag(FPIC "-fPIC")
385
+
386
if (USE_HARDENING)
387
# PNaCl accepts the flags but does not define __stack_chk_guard and __stack_chk_fail.
388
if (NOT NACL)
@@ -395,8 +397,6 @@ else()
395
397
try_c_cxx_flag(WSTACK_PROTECTOR "-Wstack-protector")
396
398
399
if (NOT NACL OR (NACL AND GAME_PIE))
- try_c_cxx_flag(FPIC "-fPIC")
-
400
# The -pie flag requires -fPIC:
401
# > ld: error: relocation R_X86_64_64 cannot be used against local symbol; recompile with -fPIC
402
# This flag isn't used on macOS:
0 commit comments