go-tools: move splitdarf OPSYS handling lower In its original place it broke PIE handling. XXX: This should be fixed in go-module.mk, but that can be done after the freeze.diff -r1.68 -r1.69 pkgsrc/devel/go-tools/Makefile
(wiz)
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.68 2022/09/21 00:06:34 schmonz Exp $
+# $NetBSD: Makefile,v 1.69 2022/09/23 10:47:46 wiz Exp $
DISTNAME= tools-0.1.0
PKGNAME= go-${DISTNAME}
@@ -70,6 +70,15 @@
CHECK_RELRO_SKIP+= bin/stringer
CHECK_RELRO_SKIP+= bin/toolstash
+pre-patch:
+ ${RM} -rf ${WRKSRC}/cmd/getgo/server
+
+.include "go-modules.mk"
+
+.include "../../lang/go/go-module.mk"
+
+# XXX: breaks PIE if included before go-module.mk
+
.include "../../mk/bsd.fast.prefs.mk"
PLIST_VARS+= splitdwarf
@@ -77,10 +86,4 @@
PLIST.splitdwarf= yes
.endif
-pre-patch:
- ${RM} -rf ${WRKSRC}/cmd/getgo/server
-
-.include "go-modules.mk"
-
-.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"