mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
$host seems better
This commit is contained in:
parent
6f7be1172b
commit
0245146134
13
config.m4
13
config.m4
@ -7,9 +7,18 @@ if test $PHP_UV != "no"; then
|
|||||||
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
|
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
|
||||||
|
|
||||||
CFLAGS=" -g -O0 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Wl,libuv/uv.a"
|
CFLAGS=" -g -O0 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Wl,libuv/uv.a"
|
||||||
if test "`(uname) 2>/dev/null`" == "Darwin"; then
|
|
||||||
|
case $host in
|
||||||
|
*darwin*)
|
||||||
|
dnl these macro does not work. why?
|
||||||
|
dnl
|
||||||
|
dnl PHP_ADD_FRAMEWORK(CoreServices)
|
||||||
|
dnl PHP_ADD_FRAMEWORK(Carbon)
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -framework CoreServices -framework Carbon"
|
CFLAGS="$CFLAGS -framework CoreServices -framework Carbon"
|
||||||
fi
|
;;
|
||||||
|
*linux*)
|
||||||
|
esac
|
||||||
|
|
||||||
PHP_SUBST(UV_SHARED_LIBADD)
|
PHP_SUBST(UV_SHARED_LIBADD)
|
||||||
PHP_SUBST([CFLAGS])
|
PHP_SUBST([CFLAGS])
|
||||||
|
Loading…
Reference in New Issue
Block a user