void-packages/srcpkgs/radare2/patches/cross.patch

15 lines
568 B
Diff

--- configure.orig 2014-03-04 15:35:49.364609242 +0100
+++ configure 2014-03-04 15:35:55.956526832 +0100
@@ -37,11 +37,7 @@ while : ; do
ENVWORDS="${ENVWORDS} $1_CPU $1_OS"
STR=`eval "echo ${S}$1"`
SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
-#SPLIT_OS="`echo "$STR" | awk -F - '{print $(NF-1)}'`"
-SPLIT_OS="`echo "$STR" | awk -F - '{
- if($1="unknown"){ if (NF<3) { print $2; } else { print $3; }
- } else { print $(NF-1); }
-}'`"
+SPLIT_OS="`echo "$STR" | awk -F - '{print $(NF-1)}'`"
eval "$1_CPU=\"$SPLIT_CPU\""
eval "$1_OS=\"$SPLIT_OS\""
shift