diff options
-rw-r--r-- | php/config/Make.rules.Darwin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/php/config/Make.rules.Darwin b/php/config/Make.rules.Darwin index d2c143a00b5..abafb15363e 100644 --- a/php/config/Make.rules.Darwin +++ b/php/config/Make.rules.Darwin @@ -10,9 +10,14 @@ # # This file is included by Make.rules when uname is Darwin. # - include $(top_srcdir)/../cpp/config/Make.rules.$(UNAME) +# +# Override CPPFLAGS set in cpp/config/Make.rules.Darwin, PHP5 extension build +# doesn't work well with --std=c++11 or -fvisibility=hidden +# +CPPFLAGS = -pthread + LDPLATFORMFLAGS += ${wl}-flat_namespace ${wl}-undefined ${wl}suppress $(LDEXEFLAGS) ifneq ($(STATICLIBS),yes) |