Skip to content

Commit

Permalink
Fix some compile and linking issues on NetBSD.
Browse files Browse the repository at this point in the history
- 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 <[email protected]>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5776 c046a42c-6fe2-441c-8c8c-71466251a162
  • Loading branch information
blueswir1 committed Nov 22, 2008
1 parent d07cca0 commit 8ef92a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -156,13 +157,16 @@ NetBSD)
bsd="yes"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd"
oss_lib="-lossaudio"
aio_lib="-lrt -lpthread"
;;
OpenBSD)
bsd="yes"
openbsd="yes"
audio_drv_list="oss"
audio_possible_drivers="oss sdl esd"
oss_lib="-lossaudio"
aio_lib="-lpthread"
;;
Darwin)
bsd="yes"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8ef92a8

Please sign in to comment.