summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorblueswir12008-11-22 21:24:29 +0100
committerblueswir12008-11-22 21:24:29 +0100
commit8ef92a880f0d2de5fae473fe8e52d271a441f214 (patch)
treee3618f43300580781f3037112d11cf2e2cb5a176 /configure
parentAdd native softfloat fpu functions (Christoph Egger) (diff)
downloadqemu-8ef92a880f0d2de5fae473fe8e52d271a441f214.tar.gz
qemu-8ef92a880f0d2de5fae473fe8e52d271a441f214.tar.xz
qemu-8ef92a880f0d2de5fae473fe8e52d271a441f214.zip
Fix some compile and linking issues on NetBSD.
- adapt configure to link against -lrt to fix aio linking errors - adapt configure to link against -lossaudio to fix oss linking errors Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5776 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 1f3d23397c..b1daf440b4 100755
--- a/configure
+++ b/configure
@@ -148,6 +148,7 @@ FreeBSD)
bsd="yes"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd pa"
+aiolib="-lpthread"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
kqemu="yes"
fi
@@ -156,6 +157,8 @@ NetBSD)
bsd="yes"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd"
+oss_lib="-lossaudio"
+aio_lib="-lrt -lpthread"
;;
OpenBSD)
bsd="yes"
@@ -163,6 +166,7 @@ openbsd="yes"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd"
oss_lib="-lossaudio"
+aio_lib="-lpthread"
;;
Darwin)
bsd="yes"
@@ -173,6 +177,7 @@ audio_drv_list="coreaudio"
audio_possible_drivers="coreaudio sdl fmod"
OS_CFLAGS="-mdynamic-no-pic"
OS_LDFLAGS="-framework CoreFoundation -framework IOKit"
+aio_lib="-lpthread"
;;
SunOS)
solaris="yes"
@@ -522,7 +527,7 @@ fi
if [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then
AIOLIBS=
elif [ "$bsd" = "yes" ]; then
- AIOLIBS="-lpthread"
+ AIOLIBS="$aio_lib"
else
# Some Linux architectures (e.g. s390) don't imply -lpthread automatically.
AIOLIBS="-lrt -lpthread"