diff options
Diffstat (limited to 'tests/cpp')
-rw-r--r-- | tests/cpp/Makefile | 6 | ||||
-rw-r--r-- | tests/cpp/main.cpp | 2 |
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"); |