[Coin-symphony] Re: LDFLAGS for 32bit librarary

claude philippe medard claude.philippe.medard at gmail.com
Wed Aug 16 06:54:33 EDT 2006


Hello again,
please find enclosed two additions/changes
made to SYMPHONY/Makefile to fix
below's problem (search for Claude).
-c


On 8/16/06, claude philippe medard <claude.philippe.medard at gmail.com> wrote:
>
> Hello,
>
> I just suscribed to SYMPHONY. can't wait to play :-)
> I am trying to build a 32bit library on a 64bit linux laptop.
> Problem: in SYMPHONY's Makefile,
> I can not get my additions to LDFLAGS or SYSLIBPATHS for LINUX to kick in:
>
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3.
> I did manage to set the CFLAGS (via MORECFLAGS: -m32 -march=i386
> -mcpu=i386.)
> to build 32bit objects successfully. However, the loading still tries to
> spit spit out
> a 64bit lib:
> i) warnings while building object files.
> ii) when puttting it all together (libsym.so),
>    /usr/bin/ld is trying to link in /usr/lib64/objects (reading stuff).
>
> Background:
> I am building a 32bit application on my 64bit laptop,
> basically because my existing cplex & xpress libs are 32bit libs.
> no problem it runs, thanks to g++32/gcc32 CFLAGS or CXXFLAGS
> set to:  -m32 -march=i386 -mcpu=i386.
>
> FYI:
> I sucessfully built all of my recently downloaded
> COIN-Clp/Osi/... as 32bit libs, also adding the LDFLAGS
> -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3.
> For example, to hook in cplex 32 bit lib into Osi, i did:
> //pwd: coin-Osi:
> ./configure CXX=g++32 CXXFLAGS='-m32 -march=i386 -mcpu=i386' CC=gcc32
> CFLAGS='-m32 -march=i386 -mcpu=i386'
> LDFLAGS=-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 FFLAGS='-m32 -march=i386
> -mcpu=i386' --prefix=/home/claude/funwork/COIN/coin-Osi/i386_linux
> --with-cplex-lib="/optimization/ilog/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_pic_mt
> -lcplex" --with-cplex-incdir=/optimization/ilog/cplex75/include/ilcplex
> --disable-cplex-libcheck --enable-static -C
>
> yours,
> -Claude Medard
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20060816/1cc3be30/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 43975 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20060816/1cc3be30/attachment.obj>


More information about the Symphony mailing list