summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-10-06 16:38:16 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-10-06 16:38:16 +0200
commit4d2ac8fbe461a9b09c152f27cd4c8d22410c487d (patch)
tree63d53662aedd3ce7bd60fccf25cb3d05f3463dba
parent3ddc5c9e3777fff5c17f74902bb5ddc7cdaf1eb1 (diff)
parent485ec6be86497fe2ec1949f62c33bff7b7a9bec2 (diff)
Merge pull request #135 from alanevans/master
Use specified php-config for linker/compiler flags rather than the system default. Fixes CopernicaMarketingSoftware/PHP-CPP#134
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 091e8f0..d2fcef3 100644
--- a/Makefile
+++ b/Makefile
@@ -91,7 +91,7 @@ ARCHIVER = ar rcs
COMPILER_FLAGS = -Wall -c -g -std=c++11
SHARED_COMPILER_FLAGS = -fpic
STATIC_COMPILER_FLAGS =
-PHP_COMPILER_FLAGS = ${COMPILER_FLAGS} `php-config --includes`
+PHP_COMPILER_FLAGS = ${COMPILER_FLAGS} `${PHP_CONFIG} --includes`
HHVM_COMPILER_FLAGS = ${COMPILER_FLAGS}
#
@@ -105,7 +105,7 @@ HHVM_COMPILER_FLAGS = ${COMPILER_FLAGS}
#
LINKER_FLAGS = -shared
-PHP_LINKER_FLAGS = ${LINKER_FLAGS} `php-config --ldflags`
+PHP_LINKER_FLAGS = ${LINKER_FLAGS} `${PHP_CONFIG} --ldflags`
HHVM_LINKER_FLAGS = ${LINKER_FLAGS}