bug-libtool
[Top][All Lists]
Advanced

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

Additional link flags for HP aCC and SGI CC


From: Ludovic Courtès
Subject: Additional link flags for HP aCC and SGI CC
Date: Mon, 23 Aug 2004 12:02:06 +0200
User-agent: Mutt/1.5.4i [Guile enabled]

Hi,

This is a followup of a previous email which maybe got lost in the
middle of spam [1].  The following patch adds new flags that need to be
passed to the (C++) linker of HP (aCC on HP-UX) and that of SGI (CC on
IRIX).  Those flags relate to template instantiation, C++ standard
features and ABI selection (IRIX).

Let me know if it can be applied.

Thanks,
Ludovic.

[1] http://lists.gnu.org/archive/html/bug-libtool/2004-08/msg00026.html


--- ltmain.sh.orig      Mon Aug 23 11:27:23 2004
+++ ltmain.sh   Mon Aug 23 11:49:27 2004
@@ -1423,6 +1423,33 @@
        continue
        ;;
 
+      # The native IRIX linker (MIPSPro) also understands the following
+      # ABI switches.
+      -64 | -32 | -n32 | -o32 | -mips[0-9])
+        case "$with_gcc/$host" in
+       no/*-irix* | /*-irix*)
+         compile_command="$compile_command $arg"
+         finalize_command="$finalize_command $arg"
+         ;;
+       esac
+       continue
+       ;;
+
+      # The IRIX native MIPSPro C++ linker (`CC') understand the `-prelink'
+      # and `-no_prelink' options that instruct it to invoke or not a C++
+      # prelinker which is responsible for instantiating missing template
+      # entities.  These options may be used in conjunction with a `-pt*'
+      # option.
+      -prelink | -no_prelink | -pt* )
+        case "$with_gcc/$host" in
+       no/*-irix* | /*-irix*)
+         compile_command="$compile_command $arg"
+         finalize_command="$finalize_command $arg"
+         ;;
+       esac
+       continue
+       ;;
+
       -L*)
        dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
        # We need an absolute path.
@@ -1488,7 +1515,25 @@
        ;;
 
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
-       deplibs="$deplibs $arg"
+        case "$with_gcc/$host" in
+       no/*-hpux* | /*-hpux*)
+          # When HP's aCC C++ compiler is used (on HP-UX), the `-mt' flag
+         # needs to be passed to the linker.
+         compiler_flags="$compiler_flags $arg";;
+       *)
+         deplibs="$deplibs $arg";;
+       esac
+       continue
+       ;;
+
+      -A[AP])
+        # When HP's aCC C++ compiler is used (on HP-UX), the `-AA' and
+        # `-AP' flags (which turn on/off ANSI C++ features) need to be passed
+        # to the linker.
+       case "$with_gcc/$host" in
+       no/*-hpux* | /*-hpux*)
+         compiler_flags="$compiler_flags $arg";;
+       esac
        continue
        ;;
 




reply via email to

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