We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa9ad98 + 9c4b3c2 commit f09eb20Copy full SHA for f09eb20
configure
@@ -85,7 +85,7 @@ valopt() {
85
local DOC="$*"
86
if [ $HELP -eq 0 ]
87
then
88
- local UOP=$(echo $OP | tr 'a-z-' 'A-Z_')
+ local UOP=$(echo $OP | tr '[:lower:]' '[:upper:]' | tr '\-' '\_')
89
local V="CFG_${UOP}"
90
eval $V="$DEFAULT"
91
for arg in $CFG_CONFIGURE_ARGS
@@ -335,6 +335,11 @@ then
335
CFG_PREFIX=/usr/local
336
fi
337
338
+if [ -z "$CFG_HOST_TRIPLE" ]
339
+then
340
+ CFG_HOST_TRIPLE="$DEFAULT_HOST_TRIPLE"
341
+fi
342
+
343
if [ -z "$CFG_TARGET_TRIPLES" ]
344
345
CFG_TARGET_TRIPLES="${CFG_HOST_TRIPLE}"
0 commit comments