spack/var/spack/repos/builtin/packages/libtool/flag_space.patch
Sergey Kosukhin 7cc11debdd Libtool: version 'develop' (#8894)
* libtool: add version 'develop'.

* libtool: patch: correct parsing of compiler output when collecting predeps and postdeps.
2018-08-06 10:43:26 -05:00

20 lines
584 B
Diff

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index b55a6e57..26febc87 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7557,10 +7557,11 @@ if AC_TRY_EVAL(ac_compile); then
case $prev$p in
-L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
+ # Some compilers place space between "-{L,R,l}" and the path (value).
# Remove the space.
- if test x-L = "$p" ||
- test x-R = "$p"; then
+ if test x-L = x"$p" ||
+ test x-R = x"$p" ||
+ test x-l = x"$p"; then
prev=$p
continue
fi