mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
$host seems better
This commit is contained in:
parent
6f7be1172b
commit
0245146134
15
config.m4
15
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
|
|
||||||
CFLAGS="$CFLAGS -framework CoreServices -framework Carbon"
|
case $host in
|
||||||
fi
|
*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"
|
||||||
|
;;
|
||||||
|
*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