diff --git a/deps/mk/cxx_flags.mk b/deps/mk/cxx_flags.mk index f92196ac..f1767887 100644 --- a/deps/mk/cxx_flags.mk +++ b/deps/mk/cxx_flags.mk @@ -1,4 +1,9 @@ -INITIAL_CXX_FLAGS += -Wall -fvisibility=hidden -fvisibility-inlines-hidden +INITIAL_CXX_FLAGS += -Wall + +ifndef GLOBALVISIBILITY + INITIAL_CXX_FLAGS += -fvisibility=hidden -fvisibility-inlines-hidden +endif + ifdef DEBUG INITIAL_CXX_FLAGS += -g else