libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Intel compiler 9.0 and linker scripts


From: Ralf Wildenhues
Subject: Intel compiler 9.0 and linker scripts
Date: Wed, 23 Aug 2006 19:57:41 +0200
User-agent: Mutt/1.5.12-2006-07-14

Hello libtool-patches readers,

No, I haven't disappeared (but my backlog has grown...).

The Intel 9.0 compiler I have access to (Version 9.0 Build 20060222)
does not accept double-quoted file names in the linker script any more:

| IPO link: can not find "".libs/longer_file_name_hello.o""
| icc: error: problem during multi-file optimization compilation (code 1)

I've tested that it accepts files without the quotes, as do version 8.1
and 7.0 of that compiler, and GCC/GNU ld as well (tested with 2.16.91).
Note that spaces in object file names are the least thing to worry about
at this point (they break many other places inside the libtool script).

So I have applied the patch below to HEAD to fix it for this compiler,
hoping everyone agrees that this is an obvious bugfix.  ;-)

branch-1-5 does not affected.

Cheers,
Ralf

        * libltdl/config/ltmain.m4sh (func_mode_link): In GNU ld script,
        do not quote object file names, for Intel icc 9.0 IPO link.

Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.50
diff -u -r1.50 ltmain.m4sh
--- libltdl/config/ltmain.m4sh  7 Aug 2006 16:25:08 -0000       1.50
+++ libltdl/config/ltmain.m4sh  23 Aug 2006 17:48:11 -0000
@@ -5231,7 +5229,7 @@
            $ECHO 'INPUT (' > $output
            for obj in $save_libobjs
            do
-             $ECHO \""$obj"\" >> $output
+             $ECHO "$obj" >> $output
            done
            $ECHO ')' >> $output
            delfiles="$delfiles $output"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]