mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
HTTP message API (#19)
* HTTP message API * Added MacOS CI * Grabbed fixes for mac from aws-crt-ffi
This commit is contained in:
@@ -8,8 +8,14 @@ PHP_ARG_WITH(awscrt)
|
||||
if test "$PHP_AWSCRT" != "no"; then
|
||||
# force lib paths to be absolute, or PHP will mangle them
|
||||
cwd=`pwd`
|
||||
# Enable s2n and libcrypto for non-darwin UNIX
|
||||
if uname -a | grep -i darwin > /dev/null 2>&1; then
|
||||
platform_tls_libs=""
|
||||
else
|
||||
platform_tls_libs="-ls2n -l:libcrypto.a"
|
||||
fi
|
||||
CRT_LIBPATHS="-L${cwd}/build/install/lib -L${cwd}/build/install/lib64"
|
||||
CRT_LIBS="-laws-crt-ffi -laws-c-auth -laws-c-http -laws-c-io -laws-c-cal -laws-c-compression -laws-c-common -ls2n -l:libcrypto.a"
|
||||
CRT_LIBS="-laws-crt-ffi -laws-c-auth -laws-c-http -laws-c-io -laws-c-cal -laws-c-compression -laws-c-common ${platform_tls_libs}"
|
||||
PHP_ADD_INCLUDE(${cwd}/build/install/include)
|
||||
PHP_EVAL_LIBLINE([$CRT_LIBPATHS $CRT_LIBS], AWSCRT_SHARED_LIBADD)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user