State of LDC

bioinfornatics bioinfornatics at fedoraproject.rog
Sun Nov 13 07:58:12 PST 2011


Le dimanche 13 novembre 2011 à 09:35 -0500, dsimcha a écrit :
> On 11/13/2011 8:14 AM, bioinfornatics wrote:
> > Le dimanche 13 novembre 2011 à 13:47 +0100, bioinfornatics a écrit :
> >> -DD_FLAGS="-g;-w;-d;-m32"
> >
> > $ CFLAGS="${CFLAGS: -o -g -m32}"
> > $ cmake -DD_FLAGS="-g;-w;-d;-m32" .
> >
> > it works ?
> >
> 
> Wouldn't that just cause the libs to be built as 32-bit only?  I want 
> them built as **both** 32- and 64-bit and the 32-bit ones automatically 
> used when building a 32-bit binary, etc.

Maybe i have miss understood .
you want build a lib as 32 binary so for this before you need have
phobos and druntime as 32 bits. for build a library as 32 bits with ldc2
build as 64 you need you flag -m32.
by default:
 - ldc2 64 do like -m64
 - ldc2 32 do like -m32
for this reason with ldc 64 your need use -m 32 for force build as 32
binary
but too if on your system you have both 32 and 64 binary it could be
have a problem with /etc/ldc2.conf and his library path.
so maybe each time you want use as 32 or 64 you need set this conf file
to right lib 32 or 64

if they are a good way to do that ...



More information about the Digitalmars-d mailing list