Commit e856b046 authored by Ludovic Courtès's avatar Ludovic Courtès

build: Do not override user CCFLAGS for libcore.

parent 05b3cda2
......@@ -11,14 +11,16 @@ sources = ['common.cpp',
'rational_function.cpp',
'vertical_segment.cpp']
CCFLAGS = env['CCFLAGS']
## Known compilation issue. If the core is not compiled with -fvisibility-hidden
## on OSX, the shared libraries and the softwares cannot share vtables. This
## impact the use of dynamic_cast in shared libraries.
##
if sys.platform == 'darwin':
CCFLAGS = ['-fvisibility=hidden']
CCFLAGS = CCFLAGS + ['-fvisibility=hidden']
else:
CCFLAGS = []
CCFLAGS = CCFLAGS + []
if env['CC'] != 'cl':
# We're not building a real static library, but rather what
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment