summaryrefslogtreecommitdiff
path: root/tests/cpp
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-19 17:26:11 +0600
committervalmat <ufabiz@gmail.com>2014-03-19 17:26:11 +0600
commitcfc04aa191dd23b3e61ba4d714a194a3a4dd08f3 (patch)
tree1be33441fbb85b009f647b306bcabc5382c5a882 /tests/cpp
parent778561e1739a4a7ef20e85b713b4790e6be225d3 (diff)
Fixed issues #46
Diffstat (limited to 'tests/cpp')
-rw-r--r--tests/cpp/Makefile6
-rw-r--r--tests/cpp/main.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/cpp/Makefile b/tests/cpp/Makefile
index 2a3cbaf..0b6800c 100644
--- a/tests/cpp/Makefile
+++ b/tests/cpp/Makefile
@@ -87,11 +87,11 @@ LINKER = g++
# one: the PHP-CPP library), you should update the LINKER_DEPENDENCIES variable
# with a list of all flags that should be passed to the linker.
#
-
+LIB_DIR=$(shell cd ../.. && pwd)
#COMPILER_FLAGS = -Wall -c -O2 -std=c++11 -fpic -o
#COMPILER_FLAGS = -Wall -c -g -std=c++11 -fpic -o
-COMPILER_FLAGS = -Wall -c -g -std=c++11 -fpic -I. -I"../../include" -o
-LINKER_FLAGS = -shared
+COMPILER_FLAGS = -Wall -c -g -std=c++11 -fpic -I. -I"${LIB_DIR}/include" -o
+LINKER_FLAGS = -shared -L"${LIB_DIR}"
LINKER_DEPENDENCIES = -lphpcpp
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index 7a4c15d..154b61b 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -20,7 +20,7 @@ extern "C"
PHPCPP_EXPORT void *get_module()
{
// create extension
- static Php::Extension extension("extention_for_tests","0.1");
+ static Php::Extension extension("extension_for_tests","0.1");
// build an interface
//Php::Interface interface("MyInterface");