pkgsrc/devel/skalibs/buildlink3.mk
schmonz b99000c0cc Update to 2.10.0.3. From the changelog:
- Libraries and binaries don't have the .note.GNU-stack section stripped
  anymore. Previously, "make strip" would strip that section, which
  would sometimes (depending on the toolchain) cause binaries to be
  incorrectly tagged as needing an executable stack. This is not a
  security issue in itself, but an executable stack makes it easier for
  an attacker to turn bugs into exploits, so it should be avoided
  whenever possible. Thanks to Xavier Stonestreet for reporting and
  finding the cause of the problem.

- Link tests are now performed with a regular file as their
  output, instead of /dev/null, which makes them more portable to
  old/buggy linkers.

- Bugfixes.

Bump default BUILDLINK_API_DEPENDS to match.
2021-04-26 14:59:46 +00:00

24 lines
744 B
Makefile

# $NetBSD: buildlink3.mk,v 1.4 2021/04/26 14:59:46 schmonz Exp $
BUILDLINK_TREE+= skalibs
.if !defined(SKALIBS_BUILDLINK3_MK)
SKALIBS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.skalibs+= skalibs>=2.10.0.3
BUILDLINK_PKGSRCDIR.skalibs?= ../../devel/skalibs
SKALIBS_TOLERATE_TARGET_SKEW?= yes
.if !empty(SKALIBS_TOLERATE_TARGET_SKEW:M[yY][eE][sS])
SKALIBS_TARGET_cmd= ${CAT} ${PREFIX}/lib/skalibs/sysdeps/target
CONFIGURE_ARGS+= --target=${SKALIBS_TARGET_cmd:sh}
SUBST_CLASSES+= skalibs-target
SUBST_STAGE.skalibs-target= post-configure
SUBST_FILES.skalibs-target= config.mak
SUBST_SED.skalibs-target= -e 's|\(CROSS_COMPILE := \).*|\1|'
.endif # SKALIBS_TOLERATE_TARGET_SKEW
.endif # SKALIBS_BUILDLINK3_MK
BUILDLINK_TREE+= -skalibs