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

Geeky Jim geekyj at gmail.com
Fri Sep 14 16:50:14 UTC 2007


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?

Thanks,
Jim

On 9/14/07, Geeky Jim <geekyj at gmail.com> wrote:
>
> Dear list members,
>
> I am having difficulties creating libpqxx 2.6.9 as a 32bit library on
> 64bit x86_64 systems.
>
> I am running FC7 using  gcc -v
> Using built-in specs.
> Target: x86_64-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)
>
> uname -m
> x86_64
>
> I am still new to GNU's buildtools.  I tried to insert these flags in
> Makefile.am but it did not help.
>
> CFLAGS += -m32
> AM_CXXFLAGS += -m32
>
> Any pointers?
>
> Thanks,
> Jim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/libpqxx-general/attachments/20070914/b6418840/attachment.html 


More information about the Libpqxx-general mailing list