[fpc-pascal] OS/2 $fpctarget macro in FPC .cfg files

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Nov 8 15:30:21 CET 2015

On 2015-11-08 13:26, Tomas Hajny wrote:
> Yes, it works as designed. The same happens with target GO32v2. The reason
> is that these targets may be used with 8.3-limited file system (the
> original FAT)

Wow, does anybody actually install OS/2 on a FAT filesystem? In all my
years of using OS/2, I've only ever come across OS/2 on HPFS, and in
eComStation it defaults to JFS. But I get that it is a faint
possibility. Thanks for clearing that up.

> these targets are not supported on other CPUs anyway). Most users wouldn't
> even notice it (especially considering the fact that cross-compilation to

I wasn't doing cross-compilation. I have a build script for fpGUI that
creates the unit output path (seeing that FPC doesn't create paths at
compile time), then I compile the framework using that path.

eg: here is my Linux version of such a build script.

fpctarget=`$fpcbin -iTP`-`$fpcbin -iTO`
#echo $fpctarget

# Must we create the output directory?
if [ ! -d $libpath ]; then
  echo 'creating directory: '$libpath
  mkdir $libpath
  echo ' '

# Default build
$fpcbin -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas

But no worries, it isn't hard modifying my build.cmd and extrafpc.cfg to
adjust for this.

As you are the only regular FPC OS/2 user here that I know of, and if
you haven't deduced it yet... fpGUI Toolkit will soon add OS/2 as one of
the officially supported platforms. :)

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list