Subject: | |
From: | |
Reply To: | |
Date: | Mon, 21 Jun 1999 10:17:13 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
>I'm trying to build shared libraries on MPE 5.5. I'm using
>gcc 2.7.2.2 found on the jazz server ( by the way, the jazz
>server doesn't hold the 2.8 ? ).
2.8 was very buggy and my port of it only appeared on one of the
FREEWARE tapes. You'd be better served to pick up the version
labeled for MPE 6.0 (it will work on MPEiX 5.5) on Jazz.
>For building my shared library, on MPE, what are the needed flags ?
If I understand correctly, you're trying to build an .sl (XL to
us MPE folks) from your source? There are a couple of ways to
do this. This really isn't a gcc issue, but linker/loader issue.
I wrote a script (marginally functional at best) to emulate what
ld is supposed to do. You'll need to use it (or use the :LINKEDITor
directly) to build the shared library.
Try:
ld -b -ashared -o mylib.sl objs.o
>What is the difference between --shared and -fPIC anyway ?
PIC stands for Position Idependent Code and is the technique used
on Unix for building shared libraries. On MPE that isn't needed.
|
|
|