LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2004-11-27 10:05:21


Sorry for seeing this so late.

* Pierre Valiron wrote on Sat, Nov 27, 2004 at 03:08:25PM CET:
> Jeff Squyres wrote:
>
> >Looking at config.log, this looks like a Libtool issue.

Confirmed bug in libtool-1.5.x. I have an untested patch against
branch-1-5 (I don't have access to Solaris 10). Pierre, could
you test it (or send it to the SUN package maintainer)? You should then
be able to put your flags in CFLAGS/CXXFLAGS.

Beware that you will need autotools to build a patched libtool
(I could provide a tarball for testing if necessary, send mail if
you like).

This issue is fixed in not-yet-released libtool-2.0.

Regards,
Ralf

        * ltmain.in: Allow some compiler/linker flags through unchecked.
        Backport from branch-2-0.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.39
diff -u -r1.334.2.39 ltmain.in
--- ltmain.in 26 Oct 2004 17:21:30 -0000 1.334.2.39
+++ ltmain.in 27 Nov 2004 15:02:42 -0000
@@ -1497,13 +1497,13 @@
         continue
         ;;
 
- # gcc -m* arguments should be passed to the linker via $compiler_flags
- # in order to pass architecture information to the linker
- # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
- # but this is not reliable with gcc because gcc may use -mfoo to
- # select a different linker, different libraries, etc, while
- # -Wl,-mfoo simply passes -mfoo to the linker.
- -m*)
+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+ # +DA*, +DD* enable 64-bit mode on the HP compiler
+ # -q* pass through compiler args for the IBM compiler
+ # -m* pass through architecture-specific compiler args for GCC
+ -64|-mips[[0-9]]|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
+
         # Unknown arguments in both finalize_command and compile_command need
         # to be aesthetically quoted because they are evaled later.
         arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`