summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-01 08:46:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-01 08:46:12 +0000
commit11d9a7d6018fd13587259edd1030a608e9f85449 (patch)
tree3f2ebaaa05700bc60e5bb984d00dfffd5d1ad921
parented89c1760d76ea530bd792e51058b7d660729ff3 (diff)
downloadabuild-11d9a7d6018fd13587259edd1030a608e9f85449.tar.gz
abuild-11d9a7d6018fd13587259edd1030a608e9f85449.tar.bz2
abuild-11d9a7d6018fd13587259edd1030a608e9f85449.tar.xz
abuild-11d9a7d6018fd13587259edd1030a608e9f85449.zip
abuild: set and export a default CC
seems like configure thinks we are crosscompiling unless we set CC when --build and --host are specified.
-rwxr-xr-xabuild.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 28699aa..1da5d92 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1912,6 +1912,9 @@ fi
[ -z "$CBUILD" ] && CBUILD="$CHOST"
[ -z "$CTARGET" ] && CTARGET="$CHOST"
+# set a default CC
+export ${CC:=gcc}
+
cd "$startdir" || die
. "$APKBUILD"