summaryrefslogtreecommitdiff
path: root/multimedia/libvpx/patches/patch-ad
blob: 489687f6acbd72d6d30c11c4ebe737347d831a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ad,v 1.2 2011/04/14 07:08:00 adam Exp $

*BSD are identified as linux.

--- build/make/configure.sh.orig	2010-10-28 13:14:14.000000000 +0000
+++ build/make/configure.sh
@@ -956,6 +956,18 @@ EOF
         esac
     fi
 
+    case ${tgt_os} in
+    darwin*)
+	add_extralibs -lm
+	;;
+    solaris*)
+	add_extralibs -lm -lrt
+	;;
+    linux*)
+	add_extralibs -lm -lrt
+	;;
+    esac
+
     # glibc needs these
     if enabled linux; then
         add_cflags -D_LARGEFILE_SOURCE