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

Re: gnat multiarch?



On Fri, 16 Sep 2011 08:46:56 -0400, Stephen Leake wrote:
Ludovic Brenta <ludovic@ludovic-brenta.org> writes:
Remember that multiarch impacts only the run-time library
packages, not the -dev packages i.e. gnat-4.6 in this particular
case, so the path to the *sources* of the RTS is unchanged while
the RTS itself moved to /usr/lib/i386-linux-gnu/libgnat-4.6.so.1
as part of the transition to multiarch.  If gprbuild only needs
to know where gnat looks for the sources of its RTS, maybe the
best is to ask gnat? i.e. at package build time:

# -*- Makefile -*-
RTS := $(dir $(shell gnatls -a -s system.o))

Would that work?

Hmm. I guess it's more complicated than I thought.

gprbuild needs to find the list of installed runtime options; sjlj,
zxp etc. I'm not at my Debian system right now; I'll investigate
more later.

My hunch is that you can see both run-time systems with

# -*- Makefile -*-
RTS_ZCX  := $(dir $(shell gnatls -a -s system.o))
RTS_SJLJ := $(dir $(shell gnatls --RTS=rts-sjlj -a -s system.o))

or perhaps

RTS_ROOT := $(dir $(dir $(shell gnatls -a -s system.o)))
RTS_LIST := $(wildcard $(RTS_ROOT)/rts-*)

Note that I split the SJLJ runtime, which is seldom needed, into a
dedicated package gnat-4.6-sjlj.  You may want gprbuild to
build-depend on it.

--
Ludovic Brenta.


Reply to: