projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add luit patch to fix POSIX compiler bug
[hvlinux.git]
/
functions
/
main
diff --git
a/functions/main
b/functions/main
index
9e4fc4d
..
7c167e5
100644
(file)
--- a/
functions/main
+++ b/
functions/main
@@
-102,7
+102,11
@@
if [ -f ../targets/${HVL_TARGET} ]; then
source ../targets/${HVL_TARGET}
fi
source ../targets/${HVL_TARGET}
fi
-CLFS_TARGET="${CLFS_ARCH}-${CLFS_OS}-${CLFS_ABI}"
+# When CLFS_OS is defined, define target as the standard triplet:
+CLFS_TARGET="${CLFS_ARCH}"
+if [ x"${CLFS_OS}" != x ]; then
+ CLFS_TARGET+="-${CLFS_OS}-${CLFS_ABI}"
+fi
CLFS_HOST="$(echo $MACHTYPE | \
sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"
CLFS_HOST="$(echo $MACHTYPE | \
sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"