libtool
[Top][All Lists]
Advanced

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

Re: tagdemo test / -c -o


From: Tim Rice
Subject: Re: tagdemo test / -c -o
Date: Sat, 29 Oct 2005 18:34:18 -0700 (PDT)

On Sun, 30 Oct 2005, Ralf Wildenhues wrote:

> Sorry for self-reply.
> 
> * Ralf Wildenhues wrote on Sun, Oct 30, 2005 at 02:08:14AM CET:
> > * Tim Rice wrote on Sun, Oct 30, 2005 at 01:41:22AM CEST:
> > >
> > > The native c/CC compilers on the that machine does not like -c -o
> > > Is there a way to work around this, or is this an automake 1.9.6 bug?
> >
> > Oops.  Does it work if you change the AC_PROG_CC_C_O to be
> > AM_PROG_CC_C_O in libtool-1.5/tagdemo/configure.ac and rerun bootstrap?
> 
> Gah.  AM_PROG_CC_C_O is C only, not C++.
> I guess you should be able to use this manually-written rule as a
> workaround:
> 
> .cpp.$(OBJEXT):
>         $(CXXCOMPILE) -c $<

Or this patch to automake
......
--- automake-1.9.6/automake.in.old      2005-06-30 14:17:13.000000000 -0700
+++ automake-1.9.6/automake.in  2005-10-29 18:31:51.565961323 -0700
@@ -691,7 +691,6 @@
                   'compile' => '$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) 
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)',
                   'compiler' => 'CXXCOMPILE',
                   'compile_flag' => '-c',
-                  'output_flag' => '-o',
                   'libtool_tag' => 'CXX',
                   'lder' => 'CXXLD',
                   'ld' => '$(CXX)',
......
> 
> or this (uses undocumented Automake knowledge, thus not advised):
> tagdemo_OBJECTS = tagdemo.lo
> 
> Reminder to self (or whoever else):  Automake needs to learn that C++
> and Fortran 77/90 compilers may not understand `-c -o'.
> 
> Cheers,
> Ralf
> 

-- 
Tim Rice                                Multitalents    (707) 887-1469
address@hidden






reply via email to

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