configure: try to support clang on netbsd
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Sep 2012 17:37:29 +0000 (19:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Sep 2012 17:37:29 +0000 (19:37 +0200)
The headers on netbsd are not fully C99 compatible which leads to multiple
definitions of symbols in clang bit not with gcc.
AFAIK this has been fixed in netbsd trunk (didnt check though)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure

index 875cb2b..3d1fae7 100755 (executable)
--- a/configure
+++ b/configure
@@ -2992,6 +2992,7 @@ case $target_os in
         disable symver
         oss_indev_extralibs="-lossaudio"
         oss_outdev_extralibs="-lossaudio"
+        enabled gcc || check_ldflags -Wl,-zmuldefs
         ;;
     openbsd|bitrig)
         # On OpenBSD 4.5. the compiler does not use PIC unless