Commit 6a0dcdda authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add libtool patch.

parent 92a99a7a
......@@ -65,6 +65,8 @@ EXTRA_DIST = util/add-f90-module \
contrib/04ltmain-xlinker-patch/ltmain-xlinker-patch.patch \
contrib/05macos-nagfor-patch/macos-nagfor.patch \
contrib/06ltmain_nag_pthread-patch/ltmain_nag_pthread.patch \
contrib/07ltmain-early-xcompile-patch/README \
contrib/07ltmain-early-xcompile-patch/ltmain-early-xcompile-libtool-2.4.6.patch \
LICENSE
ACLOCAL_AMFLAGS=-I m4
......
This patch fixes a bug in libtool that leads to a fault when
-Xcompiler is used as first option of compiler flag variables like
CFLAGS and FCLAGS.
--- a/config/ltmain.sh
+++ b/config/ltmain.sh
@@ -3300,7 +3300,8 @@ func_mode_compile ()
case $arg_mode in
arg )
# do not "continue". Instead, add this to base_compile
- lastarg=$arg
+ lastarg=$srcfile
+ srcfile=$arg
arg_mode=normal
;;
......@@ -31,6 +31,7 @@
^contrib/04ltmain-xlinker-patch/.*\.patch$
^contrib/05macos-nagfor-patch/.*\.patch$
^contrib/06ltmain_nag_pthread-patch/.*\.patch$
^contrib/07ltmain-early-xcompile-patch/.*\.patch$
^contrib/libtool-patch-gen.sh$
^contrib/.*/README\.txt$
^contrib/.*/README$
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment