build: Use flag -fno-semantic-interposition when using GCC
This commit is contained in:
@@ -183,6 +183,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
)
|
||||
endif()
|
||||
set(GCC TRUE)
|
||||
add_definitions(-fno-semantic-interposition)
|
||||
endif()
|
||||
unset(below_minimum_msg)
|
||||
|
||||
|
||||
1
wscript
1
wscript
@@ -632,6 +632,7 @@ def configure(conf):
|
||||
('.'.join(conf.env['CC_VERSION']), '.'.join(map(str, gcc_min_version))))
|
||||
|
||||
if conf.env['CXX_NAME'] in ['gcc', 'icc']:
|
||||
env.append_value('CXXFLAGS', '-fno-semantic-interposition')
|
||||
if Options.options.build_profile == 'release':
|
||||
env.append_value('CXXFLAGS', '-fomit-frame-pointer')
|
||||
if Options.options.build_profile == 'optimized':
|
||||
|
||||
Reference in New Issue
Block a user