summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 734590b..32fd0b0 100644
--- a/Makefile
+++ b/Makefile
@@ -80,8 +80,11 @@ COMPILER_FLAGS = -Wall -c -I. -I${PHP_DIR} -I${PHP_DIR}/main -I${PHP_DIR}/ext
# Just like the compiler, the linker can have flags too. The default flag
# is probably the only one you need.
#
+# Are you compiling on OSX? You may have to append the option "-undefined dynamic_lookup"
+# to the linker flags
+#
-LINKER_FLAGS = -shared
+LINKER_FLAGS = -shared `php-config --ldflags`
#