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
) $(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
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
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
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 \