gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Installation procedures and paths for third party libraries in


From: Gaius Mulley
Subject: Re: [Gm2] Installation procedures and paths for third party libraries in gm2
Date: Tue, 20 Mar 2018 12:15:37 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Roberto Aragón <address@hidden> writes:

> Hi, Gaius:
>
> My name is Roberto Aragón and I'm currently developing a C/C++ library
> with bindings to GUI toolkits like Xaw, GTK2 and QT5 to be able to
> write GUI code in GNU Modula-2.
>
> I'd like to take advice in how third party libraries should integrate
> with gm2 tree. I'd like to make easier to the user the installation and
> use of the library along with the standard compilation procedures of
> GM2 but also using simple makefiles.
>
> I'm writting this question here because I think it would be useful for
> other GM2 users in this situation.
>
> Regards,
> Roberto

Hi Roberto,

thank you for your introduction - interesting and useful work creating
bindings for gm2!

I think the front end driver the 'gm2' program should be altered so that
it can pick up third party libraries easily.  This should not be a great
change as it already has most of this in place.  Currently the options
gm2 -flibs=iso,pim

search the system iso and then pim libraries.  I propose that the driver
is changed so that:

gm2 -flibs=a,b,iso,pim foo.mod

will internally change the search path to:

gm2 -I/opt/gm2/lib/gcc/x86_64-linux-gnu/6.4.0/m2/a \
    -I/opt/gm2/lib/gcc/x86_64-linux-gnu/6.4.0/m2/b \
    -I/opt/gm2/lib/gcc/x86_64-linux-gnu/6.4.0/m2/iso \
    -I/opt/gm2/lib/gcc/x86_64-linux-gnu/6.4.0/m2/pim \
    foo.mod

would this be suitable?

regards,
Gaius



reply via email to

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