OSX doesn't have -lrt.

This commit is contained in:
Shuhei Tanuma 2012-09-07 01:39:57 +09:00
parent ace9cb9d3f
commit 2b8cf9bf0c

View File

@ -56,7 +56,7 @@ if test $PHP_UV != "no"; then
fi
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
CFLAGS=" $CFLAGS -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a -lrt"
CFLAGS=" $CFLAGS -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -Wl,libuv/uv.a"
case $host in
*darwin*)
@ -68,6 +68,7 @@ if test $PHP_UV != "no"; then
CFLAGS="$CFLAGS -framework CoreServices -framework Carbon"
;;
*linux*)
CFLAGS="#CFLAGS -lrt"
esac
PHP_SUBST(UV_SHARED_LIBADD)