[Libpqxx-general] How to compile libpqxx as 32bit library on 64bit x86_64 systems?

Jeroen T. Vermeulen jtv at xs4all.nl
Sat Sep 15 16:38:47 UTC 2007


On Fri, September 14, 2007 23:50, Geeky Jim wrote:
> I tried all of the following flags within Makefile.am, but the build is
> very persistent in making
>
> libpqxx-2.6.9.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
> not stripped
>
> CFLAGS += -m32
> AM_CXXFLAGS += -m32
> CXX_FLAGS = -m32
> LDFLAGS = elf_i386
> AM_LDFLAGS += elf_i386
>
> Am I trying this from the wrong approach?

I haven't tried building 32-bit libraries on a native 64-bit x86-64 system
myself.  But the variable you'd want to set to add C++ compiler options is
called CXXFLAGS (as described in the GNU Make documentation).  You need to
have that set while running the configure script; after that it should be
incorporated in the generated makefiles.


Jeroen




More information about the Libpqxx-general mailing list