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