Sign in Join

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

Mailing lists / fpc-devel / 2009-12

fpc.cfg Question

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Andrew Haines

Hi,

I tried to modify my fpc.cfg like so:

#IFDEF arm
-XParm-wince-
-Xd
#ENDIF

#IFDEF i386
-Xd
-Fl/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/32
-Fl/emul/linux/x86/usr/lib32
-Fl/emul/linux/x86/lib
-Fl/lib32
-Fl/usr/lib32
-Fl/usr/local/lib32
#ENDIF

I have a ppc386(linux) and also ppcarm(wince)

my computer is linux 64 bit. However these options do not seem to have any effect. I have to add these to the "Other" options in lazarus under Project -> Compler Options.

commenting out the lines that start with "#" will fix the problem until I use a compiler other than the one the options are needed for.

What am I doing wrong?

Reply by email

Henry Vermaak
to Andrew Haines

2009/12/1 Andrew Haines :

Show quoted text 30 lines
Hi, I tried to modify my fpc.cfg like so: #IFDEF arm -XParm-wince- -Xd #ENDIF #IFDEF i386 -Xd -Fl/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/32 -Fl/emul/linux/x86/usr/lib32 -Fl/emul/linux/x86/lib -Fl/lib32 -Fl/usr/lib32 -Fl/usr/local/lib32 #ENDIF I have a ppc386(linux) and also ppcarm(wince) my computer is linux 64 bit. However these options do not seem to have any effect. I have to add these to the "Other" options in lazarus under Project -> Compler Options. commenting out the lines that start with "#" will fix the problem until I use a compiler other than the one the options are needed for. What am I doing wrong?

Hmm, I'm sure I've done something like this. Does cpuarm and cpui386 work instead of arm and i386?

Henry

Reply by email

Marco van de Voort
to Henry Vermaak

In our previous episode, Henry Vermaak said:

Hmm, I'm sure I've done something like this. Does cpuarm and cpui386 work instead of arm and i386?

That would be my guess too, and otherwise inspect fpc -va output.

Reply by email

Jonas Maebe
to Henry Vermaak: 2009/12/1 Andrew Haines : Hmm, I'm sure I've done something like this. Does cpuarm and…
Henry Vermaak wrote
Hmm, I'm sure I've done something like this. Does cpuarm and cpui386 work instead of arm and i386?

Yes. The "i386" and "arm" defines are conditional defines that are present when compiling the compiler itself with code generator support for those architectures. The cpui386/cpuarm/... defines are present when you are using a compiler that generates code for those architectures. So the former are only usable in the compiler sources itself.

Jonas

Reply by email