gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Again on Install libraries and their install location


From: Gaius Mulley
Subject: Re: [Gm2] Again on Install libraries and their install location
Date: Mon, 28 Sep 2009 22:09:26 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Martin Kalbfuß <address@hidden> writes:

> Hi,
>
> Looking at the libraries shiped with GNU-Modula 2 I can see, that
> they aren't archived like static libaries are for C. They are raw
> objects and their definitions + ( the sources ).

Hi,

yes this is true.

> So can I say, that a static modula libary is a package of these three
> types? A package consisting of a directory containing them? like this:
>
> MyLib(dir)
> |
> +--(mod1.mod)(file)
> +--def1.def(file)
> +--obj1.o(file)
> +--(mod2.mod)(file)
> +--def2.def(file)
> +--obj2.o(file)
>
> And which path should I asume as their default install path?
>
> /usr/local/lib/gm2

this sounds good - I'm not 100% certain that it will be automatically
be picked up by gm2.  However I'm mindful to fix this so that the
default is picked up by the driver program.

> or to be more exact:
>
> prefix = "/usr/local"
> exec_prefix = "$prefix"
> libdir = "$exec_prefix/lib" 
> gm2_libdir = "$libdir/gm2"
>
> Like Autotools set it?

this looks very sensible (you may have to force gm2 to look here by:

gm2 -I/usr/local/lib/gm2

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]