提交 f9d60b19 编写于 作者: E Eric Blake

build: disable dtrace on non-Linux builds

Using dtrace (and systemtap in general) is Linux-specific.
Running ./autobuild.sh shows that attempting a cross-build to
target mingw was mistakenly trying to build dtrace code, merely
because it was present on the compilation host.

* configure.ac (with_dtrace): Don't attempt to use dtrace when
doing a cross-build hosted on Linux but targetting elsewhere.
Reported by Daniel P. Berrange.
上级 8fb2aeb6
...@@ -269,9 +269,10 @@ if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then ...@@ -269,9 +269,10 @@ if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then
fi fi
dnl Make some notes about which OS we're compiling for, as the lxc and qemu dnl Make some notes about which OS we're compiling for, as the lxc and qemu
dnl drivers require linux headers, while storage_mpath and nwfilter are also dnl drivers require linux headers, and storage_mpath, dtrace, and nwfilter
dnl linux specific. The "network" and storage_fs drivers are known to not dnl are also linux specific. The "network" and storage_fs drivers are known
dnl work on MacOS X presently, so we also make a note if compiling for that dnl to not work on MacOS X presently, so we also make a note if compiling
dnl for that
with_linux=no with_osx=no with_linux=no with_osx=no
case $host in case $host in
...@@ -288,6 +289,7 @@ if test $with_linux = no; then ...@@ -288,6 +289,7 @@ if test $with_linux = no; then
then then
with_qemu=no with_qemu=no
fi fi
with_dtrace=no
fi fi
AM_CONDITIONAL([WITH_LINUX], [test "$with_linux" = "yes"]) AM_CONDITIONAL([WITH_LINUX], [test "$with_linux" = "yes"])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册