Commit 8ef92a880f0d2de5fae473fe8e52d271a441f214

Authored by blueswir1
1 parent d07cca02

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
Showing 1 changed file with 6 additions and 1 deletions
configure
@@ -148,6 +148,7 @@ FreeBSD) @@ -148,6 +148,7 @@ FreeBSD)
148 bsd="yes" 148 bsd="yes"
149 audio_drv_list="oss" 149 audio_drv_list="oss"
150 audio_possible_drivers="oss sdl esd pa" 150 audio_possible_drivers="oss sdl esd pa"
  151 +aiolib="-lpthread"
151 if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then 152 if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
152 kqemu="yes" 153 kqemu="yes"
153 fi 154 fi
@@ -156,6 +157,8 @@ NetBSD) @@ -156,6 +157,8 @@ NetBSD)
156 bsd="yes" 157 bsd="yes"
157 audio_drv_list="oss" 158 audio_drv_list="oss"
158 audio_possible_drivers="oss sdl esd" 159 audio_possible_drivers="oss sdl esd"
  160 +oss_lib="-lossaudio"
  161 +aio_lib="-lrt -lpthread"
159 ;; 162 ;;
160 OpenBSD) 163 OpenBSD)
161 bsd="yes" 164 bsd="yes"
@@ -163,6 +166,7 @@ openbsd=&quot;yes&quot; @@ -163,6 +166,7 @@ openbsd=&quot;yes&quot;
163 audio_drv_list="oss" 166 audio_drv_list="oss"
164 audio_possible_drivers="oss sdl esd" 167 audio_possible_drivers="oss sdl esd"
165 oss_lib="-lossaudio" 168 oss_lib="-lossaudio"
  169 +aio_lib="-lpthread"
166 ;; 170 ;;
167 Darwin) 171 Darwin)
168 bsd="yes" 172 bsd="yes"
@@ -173,6 +177,7 @@ audio_drv_list=&quot;coreaudio&quot; @@ -173,6 +177,7 @@ audio_drv_list=&quot;coreaudio&quot;
173 audio_possible_drivers="coreaudio sdl fmod" 177 audio_possible_drivers="coreaudio sdl fmod"
174 OS_CFLAGS="-mdynamic-no-pic" 178 OS_CFLAGS="-mdynamic-no-pic"
175 OS_LDFLAGS="-framework CoreFoundation -framework IOKit" 179 OS_LDFLAGS="-framework CoreFoundation -framework IOKit"
  180 +aio_lib="-lpthread"
176 ;; 181 ;;
177 SunOS) 182 SunOS)
178 solaris="yes" 183 solaris="yes"
@@ -522,7 +527,7 @@ fi @@ -522,7 +527,7 @@ fi
522 if [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then 527 if [ "$darwin" = "yes" -o "$mingw32" = "yes" ] ; then
523 AIOLIBS= 528 AIOLIBS=
524 elif [ "$bsd" = "yes" ]; then 529 elif [ "$bsd" = "yes" ]; then
525 - AIOLIBS="-lpthread" 530 + AIOLIBS="$aio_lib"
526 else 531 else
527 # Some Linux architectures (e.g. s390) don't imply -lpthread automatically. 532 # Some Linux architectures (e.g. s390) don't imply -lpthread automatically.
528 AIOLIBS="-lrt -lpthread" 533 AIOLIBS="-lrt -lpthread"