summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-08-03 21:49:10 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-08-03 21:49:10 +0200
commit1162eebc69e7219423b2620bcb838879c2dfb3f9 (patch)
treed156c20b471b3a055540d34eda79213a06fed955
parent5892f61de832b6ab679ac3bf5a51cc680884c739 (diff)
downloadlibtool-1162eebc69e7219423b2620bcb838879c2dfb3f9.tar.gz
Fix build failure with AIX sh due to shell quoting error.
* libltdl/config/ltmain.m4sh (func_append_quoted): Document that this function inserts a separator space. (func_mode_compile): Do not pass extra space here. Fixes regression introduced in v2.2.10-49-gc13532a. Report by Rainer Tammer. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
-rw-r--r--ChangeLog9
-rw-r--r--libltdl/config/ltmain.m4sh5
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3655c07d..f8a2fc72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-08-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix build failure with AIX sh due to shell quoting error.
+ * libltdl/config/ltmain.m4sh (func_append_quoted): Document
+ that this function inserts a separator space.
+ (func_mode_compile): Do not pass extra space here.
+ Fixes regression introduced in v2.2.10-49-gc13532a.
+ Report by Rainer Tammer.
+
2010-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix pic_flag test unportabilities.
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 897a5e89..193ff1a4 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -157,7 +157,8 @@ func_append ()
} # func_append may be replaced by extended shell implementation
# func_append_quoted var value
-# Quote VALUE and append to the end of shell variable VAR.
+# Quote VALUE and append to the end of shell variable VAR, separated
+# by a space.
func_append_quoted ()
{
func_quote_for_eval "${2}"
@@ -710,7 +711,7 @@ func_mode_compile ()
save_ifs="$IFS"; IFS=','
for arg in $args; do
IFS="$save_ifs"
- func_append_quoted lastarg " $arg"
+ func_append_quoted lastarg "$arg"
done
IFS="$save_ifs"
func_stripname ' ' '' "$lastarg"