Initial skeleton to make extension support CRT FFI API (#11)

* Fixed build issues with static CRT, separated ffi target

* Fixed makefile for test-ffi target
This commit is contained in:
Justin Boswell
2021-02-22 15:55:15 -08:00
committed by GitHub
parent c30c1486fe
commit 778eafcf05
5 changed files with 64 additions and 20 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ PHP_ARG_WITH(awscrt)
if test "$PHP_AWSCRT" != "no"; then
# force lib paths to be absolute, or PHP will mangle them
cwd=`pwd`
CRT_LIBPATHS="-L${cwd}/build/install/lib64 -L${cwd}/build/install/lib"
CRT_LIBS="-laws-c-auth -laws-c-http -laws-c-cal -laws-c-io -laws-c-compression -laws-c-common -ls2n -l:libcrypto.a"
CRT_LIBPATHS="-L${cwd}/build/install/lib"
CRT_LIBS="-laws-crt-ffi -laws-c-auth -laws-c-http -laws-c-cal -laws-c-io -laws-c-compression -laws-c-common -ls2n -l:libcrypto.a"
PHP_ADD_INCLUDE(${cwd}/build/install/include)
PHP_EVAL_LIBLINE([$CRT_LIBPATHS $CRT_LIBS], AWSCRT_SHARED_LIBADD)