I am using a 64 bit machine to build OpenLDAP libraries. Building 64-bit libraries works fine.
Is there any switch for the configure script to build the 32-bit libraries. Is this documented anywhere?
-- Ashwin kumar (http://ashwinkumar.me)
On 07.06.2013 10:58, Ashwin Kumar wrote:
I am using a 64 bit machine to build OpenLDAP libraries. Building 64-bit libraries works fine.
Is there any switch for the configure script to build the 32-bit libraries. Is this documented anywhere?
-- Ashwin kumar (http://ashwinkumar.me)
Hi,
set the environment variable CFLAGS="-m32" before running configure. That'll pass the -m32 switch to gcc, which tells it to make 32 bit binaries.
Regards, Christian Manal
On Fri, Jun 7, 2013 at 3:04 PM, Christian Manal < moenoel@informatik.uni-bremen.de> wrote:
-m32
Can I not pass "-m32" flag to make while compiling?
P.S: Thanks for the quick response :-)
-- Ashwin kumar (http://ashwinkumar.me)
On 07.06.2013 12:05, Ashwin Kumar wrote:
On Fri, Jun 7, 2013 at 3:04 PM, Christian Manal < moenoel@informatik.uni-bremen.de> wrote:
-m32
Can I not pass "-m32" flag to make while compiling?
I'm note sure about that. You could just try to run
make CFLAGS=-m64
but that'd override whatever else configure put in there in the Makefiles.
Regards, Christian Manal
Thanks a lot for the reply. I could get this working as mentioned in your earlier reply.
Thanks again :-)
-- Ashwin kumar (http://ashwinkumar.me)
On Fri, Jun 7, 2013 at 6:38 PM, Christian Manal < moenoel@informatik.uni-bremen.de> wrote:
On 07.06.2013 12:05, Ashwin Kumar wrote:
On Fri, Jun 7, 2013 at 3:04 PM, Christian Manal < moenoel@informatik.uni-bremen.de> wrote:
-m32
Can I not pass "-m32" flag to make while compiling?
I'm note sure about that. You could just try to run
make CFLAGS=-m64
but that'd override whatever else configure put in there in the Makefiles.
Regards, Christian Manal
On 07.06.2013 12:05, Ashwin Kumar wrote: > On Fri, Jun 7, 2013 at 3:04 PM, Christian Manal < > moenoel@informatik.uni-bremen.de <mailto:moenoel@informatik.uni-bremen.de>> wrote: > >> -m32 > > > Can I not pass "-m32" flag to make while compiling? I'm note sure about that. You could just try to run make CFLAGS=-m64 but that'd override whatever else configure put in there in the Makefiles.
Safer to use make CC="gcc -m32" for that reason
openldap-technical@openldap.org