| |
@@ -44,21 +44,17 @@
|
| |
mb_cfgtest_stdin_input=${ccenv_host_stdin_input:-}
|
| |
mb_cfgtest_environment=${ccenv_host_cc_environment:-}
|
| |
|
| |
- mb_cfgtest_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
|
| |
+ mb_cfgtest_cflags=$(${mb_make} -s -f "$mb_pwd/Makefile.tmp" \
|
| |
OS_DSO_EXRULES=default \
|
| |
OS_SONAME=symlink \
|
| |
OS_ARCHIVE_EXT='.a' \
|
| |
- .cflags-host)
|
| |
+ .cflags-host | tail -1)
|
| |
|
| |
- mb_cfgtest_cflags="${mb_cfgtest_cflags#*: }"
|
| |
-
|
| |
- mb_cfgtest_ldflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
|
| |
+ mb_cfgtest_ldflags=$(${mb_make} -s -f "$mb_pwd/Makefile.tmp" \
|
| |
OS_DSO_EXRULES=default \
|
| |
OS_SONAME=symlink \
|
| |
OS_ARCHIVE_EXT='.a' \
|
| |
- .ldflags-host)
|
| |
-
|
| |
- mb_cfgtest_ldflags="${mb_cfgtest_ldflags#*: }"
|
| |
+ .ldflags-host | tail -1)
|
| |
}
|
| |
|
| |
|
| |
@@ -70,21 +66,17 @@
|
| |
mb_cfgtest_stdin_input=${ccenv_native_stdin_input:-}
|
| |
mb_cfgtest_environment=${ccenv_native_cc_environment:-}
|
| |
|
| |
- mb_cfgtest_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
|
| |
+ mb_cfgtest_cflags=$(${mb_make} -s -f "$mb_pwd/Makefile.tmp" \
|
| |
OS_DSO_EXRULES=default \
|
| |
OS_SONAME=symlink \
|
| |
OS_ARCHIVE_EXT='.a' \
|
| |
- .cflags-native)
|
| |
+ .cflags-native | tail -1)
|
| |
|
| |
- mb_cfgtest_cflags="${mb_cfgtest_cflags#*: }"
|
| |
-
|
| |
- mb_cfgtest_ldflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
|
| |
+ mb_cfgtest_ldflags=$(${mb_make} -s -f "$mb_pwd/Makefile.tmp" \
|
| |
OS_DSO_EXRULES=default \
|
| |
OS_SONAME=symlink \
|
| |
OS_ARCHIVE_EXT='.a' \
|
| |
- .ldflags-native)
|
| |
-
|
| |
- mb_cfgtest_ldflags="${mb_cfgtest_ldflags#*: }"
|
| |
+ .ldflags-native | tail -1)
|
| |
}
|
| |
|
| |
|
| |
@@ -352,7 +344,7 @@
|
| |
|
| |
# execute
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'header' '-----' "<${1}>" \
|
| |
|| return
|
| |
@@ -392,7 +384,7 @@
|
| |
|
| |
# execute
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
&& printf 'cfgtest: %s header <%s>: no error.' \
|
| |
"$mb_cfgtest_cfgtype" "${1}" >&3 \
|
| |
@@ -429,7 +421,7 @@
|
| |
|
| |
# execute
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'interface' '(error)' "${1}" \
|
| |
|| return
|
| |
@@ -466,7 +458,7 @@
|
| |
|
| |
# execute
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'decl' '(error)' "${1}" \
|
| |
|| return
|
| |
@@ -519,7 +511,7 @@
|
| |
cfgtest_common_init
|
| |
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
&& mb_internal_size=$mb_internal_guess
|
| |
|
| |
@@ -570,7 +562,7 @@
|
| |
cfgtest_ret=1
|
| |
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'attr' '(error)' "${1}" \
|
| |
|| return
|
| |
@@ -602,7 +594,7 @@
|
| |
cfgtest_ret=1
|
| |
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'snippet' '(error)' \
|
| |
|| return
|
| |
@@ -635,7 +627,7 @@
|
| |
cfgtest_ret=1
|
| |
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'macro' '(error)' "${1}" \
|
| |
|| return
|
| |
@@ -683,7 +675,7 @@
|
| |
|
| |
# execute
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'library' '-----' "$@" \
|
| |
|| return 1
|
| |
@@ -867,7 +859,7 @@
|
| |
|
| |
# execute
|
| |
printf '%s\n' "$cfgtest_src" \
|
| |
- | eval $(printf '%s' "$cfgtest_cmd") \
|
| |
+ | $(printf '%s' "$cfgtest_cmd") \
|
| |
> /dev/null 2>&3 \
|
| |
|| cfgtest_epilog 'switch' '(error)' "$@" \
|
| |
|| return 1
|
| |
Closes: https://dev.midipix.org/zippy/sofort/issue/4