You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/herrie/files/herrie-chost_issue.patch

30 lines
547 B

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