mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
build: fix compilation warning if dtrace doesn't work
Check if dtrace should instrument object files only if dtrace support is detected to work
This commit is contained in:
parent
b2341e7709
commit
515be33909
@ -30,7 +30,6 @@ _ACEOF
|
||||
])
|
||||
AS_IF([test "x$ac_cv_dtrace_works" = "xyes"],[
|
||||
AC_DEFINE([HAVE_DTRACE], [1], [Enables DTRACE Support])
|
||||
])
|
||||
AC_CACHE_CHECK([if dtrace should instrument object files],
|
||||
[ac_cv_dtrace_needs_objects],[
|
||||
dnl DTrace on MacOSX does not use -G option
|
||||
@ -52,6 +51,7 @@ _ACEOF
|
||||
[ac_cv_dtrace_needs_objects=no])
|
||||
rm -f conftest.d.o conftest.d conftest.h conftest.o conftest.c
|
||||
])
|
||||
])
|
||||
AC_SUBST(DTRACEFLAGS) dnl TODO: test for -G on OSX
|
||||
ac_cv_have_dtrace=yes
|
||||
])])
|
||||
|
Loading…
x
Reference in New Issue
Block a user