mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
Linux needs the -fvisibility=hidden flags. The font selection of the debugger segmentation faults without it. Since the font is selected when the application begins the debugger is rendered inoperable.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6411 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b5e4f7f622
commit
d6d907f49c
@ -52,6 +52,13 @@ if(VISIBILITY_INLINES_HIDDEN)
|
||||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden)
|
||||
endif(VISIBILITY_INLINES_HIDDEN)
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
CHECK_CXX_COMPILER_FLAG(-fvisibility=hidden VISIBILITY_HIDDEN)
|
||||
if(VISIBILITY_HIDDEN)
|
||||
add_definitions(-fvisibility=hidden)
|
||||
endif(VISIBILITY_HIDDEN)
|
||||
endif(UNIX AND NOT APPLE)
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-D_SECURE_SCL=0)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
|
@ -180,6 +180,7 @@ elif sys.platform == 'win32':
|
||||
else:
|
||||
env['CCFLAGS'] += ['-fPIC', '-msse2', '-pthread']
|
||||
if env['CCVERSION'] >= '4.2.0':
|
||||
env['CCFLAGS'] += ['-fvisibility=hidden']
|
||||
env['CXXFLAGS'] += ['-fvisibility-inlines-hidden']
|
||||
env['CPPDEFINES'] += ['HAVE_CONFIG_H']
|
||||
env['CPPPATH'].insert(0, '#') # Make sure we pick up our own config.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user