X-From-Line: JoopvandeWege@mococo.nl Wed Dec 03 04:15:19 1997
Return-Path: <JoopvandeWege@mococo.nl>
Delivered-To: gord@trick.profitpress.com
Received: (qmail 1795 invoked from network); 3 Dec 1997 04:15:16 -0000
Received: from localhost (HELO bambam.m-tech.ab.ca) (127.0.0.1)
by localhost with SMTP; 3 Dec 1997 04:15:16 -0000
Received: from mcc-server.mococo.nl (mail.mococo.nl [195.193.4.2]) by bambam.m-tech.ab.ca (8.8.5/8.6.9) with SMTP id GAA28567 for <gord@m-tech.ab.ca>; Tue, 2 Dec 1997 06:06:47 -0700
Received: from laptop.mococo.nl (unverified [195.193.4.9]) by mcc-server.mococo.nl
(EMWAC SMTPRS 0.83) with SMTP id <B0000011089@mcc-server.mococo.nl>;
first compile all object with the following additional CFLAGS:
-resident32 -malways-restore-a4 (these are the safest, -resident and
-m...restore.. can also be use but then certain limitations and
restrictions are imposed)
AR and RANLIB these into libNAME.a (-->$libname.a)
run a2ixlibrary on libNAME.a --> $libname_ixlibrary.a and $libname.ixlibrary
where _ixlibrary.a contains stubs and .ixlibrary contains the real code.
(NAME.h and NAME.x are also generated and automatically installed by
a2ixlibrary and are used by collect2)
libNAME.a can be discarded after running a2ixlibrary.
libNAME_ixlibrary.a gets installed in /usr/lib together with all the
other linker libraries.
libNAME.ixlibrary should be installed somewhere in a directory belonging
to LIBS: There is a subdirectory in /gg where the gnu-tools are
installed called sys/libs which should be used for this, prevents
cluttering the main libs directories.
Static libraries on the Amiga:
compile all objects with the CFLAGS of your choice
AR and RANLIB these into libNAME.a
install in /usr/lib
done.
>
> * How are each of them generated?
>
> * Where do they need to be installed?
Answered above, I hope.
>
> * `shlibpath_var' is the name of the runtime library search path
> environment variable. On Linux, it is `LD_LIBRARY_PATH'. So, if you
> install libhello.so in /home/gord/lib, binaries won't be able to
> execute unless you set `LD_LIBRARY_PATH=/home/gord/lib' before running
> them. Is there an equivalent variable under AmigaOS?
Assign LIBS: home:gord/lib add
Nope, ':' is NOT a typo. The root directory is ':' on the amiga and
cd / means move up one level, cd : means move to root.
There is a unix emulation library, ixemul.library, which handles things
like cd .. and cd / when one is using programs linked against it.
Thats why almost, if not all gnu tools are available for the Amiga and
they also work like on Unix. These leads to difficulties when mixing
'native' Amiga programs and ixemul.library linked ones. The path
differences are most prominent.
Somewhere in my patches I use a native program 'assign' inside ksh.
Further I have the gnu-tools installed under the 'gg' directory and
reference them in ksh using /gg.
Libtool libraries end up in /gg/lib (libNAME_ixlibrary.a, libNAME.a) and
the dynamic library ends up in /gg/sys/libs (libNAME.ixlibrary)
The system finds these because of the following statement:
assign LIBS: gg:sys/libs add
But some people like to specify --prefix=/local when configuring
packages and they also want the dynamic library to appear under
/local/sys/libs and thats why I have the sed substitution in postinstall_cmds
(?). Those people are responsible that they have an assignment that
tells the system to look into the proper directory for .ixlibraries.
> Thanks!
No thanks, hope this clears up a lot of things. If not, ask me and I'll
try to clarify things.
Joop
----
Joop van de Wege (JoopvandeWege@mail.mococo.nl)
Mobile Computing Consultants
+31 (0) 318 553292
From nobody Sun Dec 14 10:48:13 1997
X-From-Line: JoopvandeWege@mococo.nl Sat Dec 13 03:05:34 1997
Return-Path: <JoopvandeWege@mococo.nl>
Delivered-To: gord@trick.profitpress.com
Received: (qmail 11049 invoked from network); 13 Dec 1997 03:05:32 -0000
Received: from localhost (HELO bambam.m-tech.ab.ca) (127.0.0.1)
by localhost with SMTP; 13 Dec 1997 03:05:32 -0000
Received: from mcc-server.mococo.nl (mail.mococo.nl [195.193.4.2]) by bambam.m-tech.ab.ca (8.8.5/8.6.9) with SMTP id GAA11738 for <gord@m-tech.ab.ca>; Fri, 12 Dec 1997 06:47:52 -0700
Received: from laptop.mococo.nl (unverified [195.193.4.9]) by mcc-server.mococo.nl
(EMWAC SMTPRS 0.83) with SMTP id <B0000011567@mcc-server.mococo.nl>;