Re: Multilib support

2007-11-06 Thread Ralf Wildenhues
ing that's compiler-intimate, you may just be able to make use of the multilib support. Sorry I can't help you with that at all. Cheers, Ralf

Multilib support

2007-11-06 Thread NightStrike
I just came across the multilib section of the automake manual: http://www.gnu.org/software/automake/manual/automake.html#Multilibs How can I find the status on this? How "experimental" is "experimental"?

Re: Cross-compiling support (was: Multilib support)

2006-09-25 Thread Stepan Kasal
Hello, On Fri, Sep 22, 2006 at 10:54:20PM +0800, Tzu-Chien Chiu wrote: > 2006/9/22, Stepan Kasal <[EMAIL PROTECTED]>: > >But this does not mean tha BUILD_CC has to be set! > >If BUILD_CC is empty, this just makes CC empty. AC_PROG_CC then does > >its work. (The variable CC overrides the test onl

Re: Cross-compiling support (was: Multilib support)

2006-09-22 Thread Tzu-Chien Chiu
2006/9/22, Stepan Kasal <[EMAIL PROTECTED]>: But this does not mean tha BUILD_CC has to be set! If BUILD_CC is empty, this just makes CC empty. AC_PROG_CC then does its work. (The variable CC overrides the test only if it is nonempty.) 1. I understand, but under which circumstances native

Cross-compiling support (was: Multilib support)

2006-09-22 Thread Stepan Kasal
Hello, On Thu, Sep 21, 2006 at 04:34:35PM +0200, Ralf Corsepius wrote: > On Thu, 2006-09-21 at 21:36 +0800, Tzu-Chien Chiu wrote: > > I've read configure.ac and Makefile.am of texinfo. Here is how it works. [...] I'm afraid you have not understood the trick. Perhaps you could try to cross-compile

Re: Multilib support

2006-09-21 Thread Ralf Corsepius
On Thu, 2006-09-21 at 21:36 +0800, Tzu-Chien Chiu wrote: > Thank you. You're right. It has nothing to do with multilib. > > I've read configure.ac and Makefile.am of texinfo. I am not familiar with texinfo's sources > Here is how it works. > When cross-compiling, the same configure script is run

Re: Multilib support

2006-09-21 Thread Tzu-Chien Chiu
Thank you. You're right. It has nothing to do with multilib. I've read configure.ac and Makefile.am of texinfo. Here is how it works. When cross-compiling, the same configure script is run twice for all sub-directories of source directory. Makefile.am, however, selectively only builds some or all

Re: Multilib support

2006-09-21 Thread Stepan Kasal
Hello, Ralf Corsepius has answered the question about AM_ENABLE_MULTILIB, and then, on Thu, Sep 21, 2006 at 09:52:25AM +0200, he wrote: > > I need to build *both* the native and the cross-compiled library > > at the same time (one-time configure script and make), rather than > > *either one* of

Re: Multilib support

2006-09-21 Thread Ralf Corsepius
On Tue, 2006-08-08 at 20:18 +0800, Tzu-Chien Chiu wrote: > Hello, Ralf. > > I found gcc and newlib don't use AM_ENABLE_MULTILIB, instead > TARGET_SUBDIR is set. Pardon, they (and binutils) use it. AM_ENABLE_MULTILIB is used in library subdir configure scripts (*/configure.[ac|in]), not inside of

Re: Multilib support

2006-08-08 Thread Stepan Kasal
Hello, On Tue, Aug 08, 2006 at 08:18:32PM +0800, Tzu-Chien Chiu wrote: > I need to build *both* the native and the cross-compiled library > at the same time (one-time configure script and make), rather than > *either one* of them. FWIIW, the Texinfo configure does this: if a cross compile build i

Re: Multilib support

2006-08-08 Thread Tzu-Chien Chiu
Hello, Ralf. I found gcc and newlib don't use AM_ENABLE_MULTILIB, instead TARGET_SUBDIR is set. ChangeLog (gcc 3.4.4): Thu Jun 19 14:16:42 1997 Brendan Kehoe <[EMAIL PROTECTED]> * configure.in: Don't set ENABLE_MULTILIB, so we'll be passing --enable-multilib down to subdirs; se

Re: Multilib support

2006-08-08 Thread Ralf Wildenhues
Hello Tzu-Chien, * Tzu-Chien Chiu wrote on Tue, Aug 08, 2006 at 11:37:41AM CEST: > > I need to build a native library and a cross-compiled libarary from > the same set of source files, but I don't find any method to specify > per-target compiler. > I read the manual and guessed that AM_ENABLE_MU

Multilib support

2006-08-08 Thread Tzu-Chien Chiu
Hello everyone. I need to build a native library and a cross-compiled libarary from the same set of source files, but I don't find any method to specify per-target compiler. LISTING: configure.ac AC_CANONICAL_SYSTEM AC_PROG_CC CC_FOR_BUILD=gcc AC_SUBSET(CC_FOR_BUILD) LISTING: Makefile.am lib