GPC with gcc-4.[23]

Adriaan van Os gpc at microbizz.nl
Thu Jun 23 20:55:52 CEST 2011


Waldek Hebisch wrote:
> Thanks for information.  Actually building shared libgpc "by hand"
> (that is by invoking make in libgpc subdirectory with appropriate
> arguments) should work.  However, there is some support to trigger
> build of shared libgpc from configure and AFAICS this does not
> work.  Also, it is now possible to build libgpc in "multilib"
> version, for example both 32 and 64 version in the same build,
> but the Makefile does not know where to install resulting
> shared libraries...

I built gcc-4.3.5 with multilibs enabled (the default on Mac OS X)

../gcc-4.3.5/configure --enable-languages=c,pascal --enable-threads=posix --disable-nls 
--target=i386-apple-darwin9 --host=i386-apple-darwin9 --build=i386-apple-darwin9 
--prefix=/Developer/Pascal/gpc435u1 --disable-mapped-location

This does build and install 32-bit and 64-bit gcc.a and gpc.a. The 32-bit libs are installed in 
....../lib/gcc/i386-apple-darwin9/4.3.5, the 64-bit libs in a subfolder 
....../lib/gcc/i386-apple-darwin9/4.3.5/x86_64.

The gpc -m32 and -m64 now automatically work. Couldn't be better.

Regards,

Adriaan van Os




More information about the Gpc mailing list