summaryrefslogtreecommitdiff
blob: 1949972baa6a9a851bcc68d3942ec89ad06671d9 (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
26
27
28
29
This patch sets the OS variable according to the CHOST given by the environment,
thus enabling cross-compilation.

Index: herrie-1.8/configure
===================================================================
--- herrie-1.8.orig/configure
+++ herrie-1.8/configure
@@ -50,6 +50,21 @@ CFG_VORBIS=yes
 CFG_XSPF=yes
 DOIT=@
 
+case "$CHOST" in
+  *-darwin*)
+	OS=Darwin
+	;;
+  *-linux*)
+	OS=Linux
+	;;
+  *-freebsd*)
+	OS=FreeBSD
+	;;
+  *-solaris*)
+	OS=SunOS
+	;;
+esac
+
 # Operating system defaults
 [ "$OS" != "" ] || OS=`uname`
 case $OS in