Re: [fpc-pascal] What is the svn url for fpc release 2.6.4

2015-11-12 Thread Mark Morgan Lloyd

Bo Berglund wrote:

On Tue, 10 Nov 2015 01:29:07 +, Mark Morgan Lloyd
 wrote:


Figured that by using svn I would get exactly what is needed for
bulding fpc...
I've already- strongly- suggested that you use fpcbuild. That's a 
complete snapshot which won't be subject to retroactive patches, which 
you only have to download once, and which you can copy between machines 
without local svn deciding it doesn't like something.


Lost that exact advice. But now I know so I will stick with fpcbuild.
Thanks!


You'll need to switch to the fpcsrc directory it contains, after which 
building FPC is exactly the same as e.g. if you've got trunk from svn.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] GCC -PIE equivalent?

2015-11-12 Thread Jon Foster
I'm building native code compilers for Android. I've been assisting the
PascalDevelop project available in the Play Store:

https://play.google.com/store/apps/details?id=com.assoft.PascalDevelop

I'm working with the 3.0.0rc2 release and building whichever units will.
The current version of the app ships with the older 2.6.x compiler.

What we've discovered is that if we try to run the compiler on Android 5
(Lollipop) or greater the binary won't load and complains that it isn't
a "Position Independent Executable" (PIE). This is a feature similar to
PIC. In GCC they have a separate flag -fPIE as opposed to the -fPIC. The
purpose is to make the whole executable relocatable to facilitate
"randomized address spaces".

If I build a standard "program" (not library) with -Cg do I get a PIE...
or does that only affect linking for libraries? I haven't been able to
find anything on the iNet regarding PIE and FPC.

THX - Jon

-- 
Sent from my Debian Linux laptop -- http://www.debian.org/intro/about

Jon Foster
JF Possibilities, Inc.
j...@jfpossibilities.com
541-410-2760
Making computers work for you!

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal