Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-08

make smart doesn't work for cross build

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

leledumbo

I want to build a smartlinked (stripped and optimized as well) version of fpc for win64 from win32, so I call:
make all smart STRIP=1 OPTIMIZE=1 OS_TARGET=win64 CPU_TARGET=x86_64

but this ends in failing to call ppcx64. Hey, shouldn't it call ppcrossx64?

So, I try removing smart target. It works! But the binaries aren't smartlinked...

View this message in context: http://old.nabble.com/make-smart-doesn%27t-work-for-cross-build-tp29497353p29497353.html Sent from the Free Pascal - General mailing list .

Reply by email

leledumbo
to Florian Klämpfl

I see no -CX / -XX appeared in the command line.

Florian Klämpfl wrote 10 lines
> So, I try removing smart target. It works! But the binaries aren't > smartlinked... What makes you think so? _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
View this message in context: http://old.nabble.com/make-smart-doesn%27t-work-for-cross-build-tp29497353p29518804.html Sent from the Free Pascal - General mailing list .

Reply by email

Jonas Maebe
to leledumbo: I want to build a smartlinked (stripped and optimized as well) version of fpc for win64…
leledumbo wrote 5 lines
I want to build a smartlinked (stripped and optimized as well) version of fpc for win64 from win32, so I call: make all smart STRIP=1 OPTIMIZE=1 OS_TARGET=win64 CPU_TARGET=x86_64 but this ends in failing to call ppcx64. Hey, shouldn't it call ppcrossx64?

I don't think that calling "make smart" in the top level directory is supported at all. "make all" will automatically build all units in a smartlinkable way on platforms where this is supported. Smartlinking the compiler and the utilities is never done (which saved at least saved one FPC release until now from being partially broken due to bugs in the smartlinking support).

Jonas

Reply by email

leledumbo
to Jonas Maebe

Oh, is that so? What about defining CREATE_SMART and LINK_SMART?

Jonas Maebe-2 wrote 25 lines
On 21 Aug 2010, at 08:59, leledumbo wrote: > I want to build a smartlinked (stripped and optimized as well) version of > fpc > for win64 from win32, so I call: > make all smart STRIP=1 OPTIMIZE=1 OS_TARGET=win64 CPU_TARGET=x86_64 > > but this ends in failing to call ppcx64. Hey, shouldn't it call > ppcrossx64? I don't think that calling "make smart" in the top level directory is supported at all. "make all" will automatically build all units in a smartlinkable way on platforms where this is supported. Smartlinking the compiler and the utilities is never done (which saved at least saved one FPC release until now from being partially broken due to bugs in the smartlinking support). Jonas_______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
View this message in context: http://old.nabble.com/make-smart-doesn%27t-work-for-cross-build-tp29497353p29518959.html Sent from the Free Pascal - General mailing list .

Reply by email