summaryrefslogtreecommitdiffhomepage
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-05 14:14:32 +0000
committermidipix <writeonce@midipix.org>2021-06-05 15:11:59 +0000
commit24e2654285d38f892884144288c0616e4b28c03d (patch)
tree9bbdafe56bdd60eaed5b6914b154f57dbf1d1a39 /sofort/ccenv
parent6ef6b5951a9172de0b2342700a84d67e9eb196b3 (diff)
downloadsltdl-24e2654285d38f892884144288c0616e4b28c03d.tar.bz2
sltdl-24e2654285d38f892884144288c0616e4b28c03d.tar.xz
build system: ccenv_set_cc_{link_}switch_vars(): proper project-specific tests.
Diffstat (limited to 'sofort/ccenv')
-rw-r--r--sofort/ccenv/ccenv.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index 583434a..eddbb68 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -1448,10 +1448,11 @@ ccenv_output_defs()
ccenv_set_cc_switch_vars()
{
if [ -f $mb_project_dir/project/config/ccswitch.strs ]; then
- ccenv_switch_vars=$(grep -v -e '^#' -e '^-Wl,' \
+ ccenv_switch_vars=$(cat \
$mb_project_dir/sofort/ccenv/ccswitch.strs \
$mb_project_dir/project/config/ccswitch.strs \
- | sort -u)
+ | grep -v -e '^#' -e '^-Wl,' \
+ | sort -u)
else
ccenv_switch_vars=$(grep -v -e '^#' -e '^-Wl,' \
$mb_project_dir/sofort/ccenv/ccswitch.strs \
@@ -1498,9 +1499,10 @@ ccenv_set_cc_linker_switch_vars()
>> "$ccenv_mk"
if [ -f $mb_project_dir/project/config/ccswitch.strs ]; then
- ccenv_switch_vars=$(grep -e '^-Wl,' \
+ ccenv_switch_vars=$(cat \
$mb_project_dir/sofort/ccenv/ccswitch.strs \
$mb_project_dir/project/config/ccswitch.strs \
+ | grep -e '^-Wl,' \
| sort -u)
else
ccenv_switch_vars=$(grep -e '^-Wl,' \