Re: Automake passing CFLAGS or CXXFLAGS when linking

2016-07-19 Thread Grégory Pakosz
o LINK Gregory On Sat, Jul 2, 2016 at 9:05 AM, Grégory Pakosz <gpak...@yahoo.fr> wrote: > Thanks for the reply Bob. > > Well I indeed copy pasted from a Libtoolized project (by mistake) but > first I noticed CFLAGS and CXXFLAGS where used when linking in a plain > Automake

Re: Automake passing CFLAGS or CXXFLAGS when linking

2016-07-02 Thread Grégory Pakosz
) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ Also, as far as I can tell, Libtool filters flag only when linking shared libraries. Gregory On Fri, Jul 1, 2016 at 3:33 PM, Bob Friesenhahn <bfrie...@simple.dallas.tx.us> wrote: > On Tue, 28 Jun 2016, Grégory Pakosz wrote: > >> H

Automake passing CFLAGS or CXXFLAGS when linking

2016-06-28 Thread Grégory Pakosz
Hello, What's the rationale behind Automake passing CFLAGS or CXXFLAGS when linking? LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX

Re: cross-compiling on 64 to 32-bit Linuxlocalhost/

2010-03-03 Thread Grégory Pakosz
You don't need to specify -m32 if you have a tool set prefixed with the cross tag. The reason for using -m32 is because the user wants to use his 64-bit gcc to compile 32-bit code, so he has to tell the compiler to switch to 32-bit mode also. (Incidentally, if you're running on Linux, might

Re: cross-compiling on 64 to 32-bit Linuxlocalhost/

2010-03-02 Thread Grégory Pakosz
You need a bi-arch system, that is, one that has the system libraries both in a 64-bit variant and in a 32-bit variant (typically in /lib64 and /lib, respectively). For compiling in 32-bit mode, I use ./configure --host=i686-pc-linux-gnu \ --prefix=/arch/x86-linux/gnu \