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 bb6f083 commit ed598c3Copy full SHA for ed598c3
cmake/DaemonFlags.cmake
@@ -395,11 +395,13 @@ else()
395
try_c_cxx_flag(WSTACK_PROTECTOR "-Wstack-protector")
396
397
if (NOT NACL OR (NACL AND GAME_PIE))
398
- try_c_cxx_flag(FPIE "-fPIC")
+ try_c_cxx_flag(FPIC "-fPIC")
399
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:
403
# > clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
- if (NOT APPLE)
404
+ if (FLAG_FPIC AND NOT APPLE)
405
try_exe_linker_flag(LINKER_PIE "-pie")
406
endif()
407
0 commit comments