pkgsrc/lang/gnat-aux/buildlink3.mk
marino b75a4ca28c lang/gnat-aux: Modify rpath handling for shared project libraries
The GNAT compiler project builder essentially doesn't support DESTDIR
out of the box.  By default, it sets rpath of shared libraries to the
directory to which they are installed.  One may add additional rpaths
through switches, but not remove these default ones.  Also added to
the default rpath are the paths to the ada library and the standard
localbase library.

This modification to the compiler will force the project builder to
recognize the -R switch (gnatlink uses this to disable rpaths), and
it reacts by not putting the library install path into rpath.  The
adalib and ${LOCALBASE}/lib paths will still make up the base rpath
definition of the built shared libraries.

This change was prompted by the rpath troubles of the XML/Ada package.
2011-12-03 07:28:18 +00:00

18 lines
543 B
Makefile

# $NetBSD: buildlink3.mk,v 1.2 2011/12/03 07:28:18 marino Exp $
BUILDLINK_TREE+= gnat-aux
.if !defined(GNAT_AUX_BUILDLINK3_MK)
GNAT_AUX_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.gnat-aux+= gnat-aux>=20110627nb2
BUILDLINK_PKGSRCDIR.gnat-aux?= ../../lang/gnat-aux
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.endif # GNAT_AUX_BUILDLINK3_MK
BUILDLINK_TREE+= -gnat-aux