mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
macOS build: don't use visibility compiler flags
According to issue #2508 a self-compiled version of `mkvextract` misbehaves if the option `-fvisibility=hidden` is used. As building my own DMG without the option works just fine, and as the resulting programs work fine, too, I'll simply drop both flags from the build process altogether. Fixes #2508.
This commit is contained in:
parent
ac30bb5a04
commit
71865d9081
1
Rakefile
1
Rakefile
@ -145,7 +145,6 @@ def setup_globals
|
||||
cxxflags = "#{cflags_common} #{c(:STD_CXX)}"
|
||||
cxxflags += " -Woverloaded-virtual" if c(:COMPILER_TYPE) != "gcc" # too many false positives in EbmlElement.h on g++ 8
|
||||
cxxflags += " -Wnon-virtual-dtor -Wextra -Wno-missing-field-initializers #{c(:WSHADOW_COMPATIBLE_LOCAL)} #{c(:WNO_MAYBE_UNINITIALIZED)}"
|
||||
cxxflags += " -fvisibility=hidden -fvisibility-inlines-hidden" if $building_for[:macos]
|
||||
cxxflags += " #{c(:QT_CFLAGS)} #{c(:BOOST_CPPFLAGS)} #{c(:USER_CXXFLAGS)}"
|
||||
|
||||
ldflags = ""
|
||||
|
@ -9,7 +9,7 @@ export CPP="clang -E"
|
||||
export CXX="clang++"
|
||||
export CXXCPP="clang++ -E"
|
||||
export CFLAGS=""
|
||||
export CXXFLAGS="-std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden"
|
||||
export CXXFLAGS="-std=c++14"
|
||||
export QT_CXXFLAGS="-stdlib=libc++"
|
||||
export MACOSX_DEPLOYMENT_TARGET="10.9"
|
||||
export DRAKETHREADS=${DRAKETHREADS:-4}
|
||||
|
Loading…
Reference in New Issue
Block a user