libtool-patches
[Top][All Lists]
Advanced

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

Re: Support -model [arg] with Tru64 UNIX C++ compiler


From: Albert Chin
Subject: Re: Support -model [arg] with Tru64 UNIX C++ compiler
Date: Wed, 8 Dec 2004 12:08:08 -0600
User-agent: Mutt/1.5.6i

On Wed, Dec 08, 2004 at 09:00:06AM +0100, Ralf Wildenhues wrote:
> * Albert Chin wrote on Wed, Dec 08, 2004 at 04:59:00AM CET:
> > With the Tru64 UNIX C++ compiler, -model [arg] selects the layout of
> > C++ classes, name mangling, and exception handling. It is important to
> > preserve this when compiling and linking.
> 
> Err, since we use $CXX for linking anyway, you get away by using
> xcompiler only, right?

Yes. I thought about prev=model but I just reused prev=xcompiler.
Dunno if it is considered an ugly hack though.

> Just for the record: Is this exposed by the current testsuite?
> Can you be bothered to backport to branch-1-5?

Below.

-- 
albert chin (address@hidden)

-- snip snip
2004-12-07  Albert Chin-A-Young  <address@hidden>
   
        * config/ltmain.m4sh: Preserve -model [arg] option, used
        with the Tru64 UNIX C++ compiler. This option selects the
        layout of C++ classes, name mangling, and exception handling.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.41
diff -u -3 -p -r1.334.2.41 ltmain.in
--- ltmain.in   1 Dec 2004 18:00:58 -0000       1.334.2.41
+++ ltmain.in   8 Dec 2004 18:06:53 -0000
@@ -1487,6 +1487,16 @@ EOF
        continue
        ;;
 
+      # Tru64 UNIX uses -model [arg] to determine the layout of C++
+      # classes, name mangling, and exception handling.
+      -model)
+       compile_command="$compile_command $arg"
+       compiler_flags="$compiler_flags $arg"
+       finalize_command="$finalize_command $arg"
+       prev=xcompiler
+       continue
+       ;;
+
      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
        deplibs="$deplibs $arg"
        continue




reply via email to

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