pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/dbus Fix dbus PIE build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3d376eb7cbc
branches:  trunk
changeset: 372144:a3d376eb7cbc
user:      nros <nros%pkgsrc.org@localhost>
date:      Thu Jan 20 16:38:21 2022 +0000

description:
Fix dbus PIE build

Only remove -fPIE and -pie when PKGSRC_MKPIE is no.
The buildlink transforms make the tools become non-pie.
This causes the PIE checks to fail.

diffstat:

 sysutils/dbus/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r c952dd0e41e3 -r a3d376eb7cbc sysutils/dbus/Makefile
--- a/sysutils/dbus/Makefile    Thu Jan 20 13:53:21 2022 +0000
+++ b/sysutils/dbus/Makefile    Thu Jan 20 16:38:21 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.126 2021/11/07 19:14:15 khorben Exp $
+# $NetBSD: Makefile,v 1.127 2022/01/20 16:38:21 nros Exp $
 
 DISTNAME=      dbus-1.12.20
 PKGREVISION=   2
@@ -92,10 +92,12 @@
 FILES_SUBST+=          DBUS_GROUP=${DBUS_GROUP}
 
 BUILDLINK_TRANSFORM+=  rm:-Wl,--gc-sections
+.if !empty(PKGSRC_MKPIE:M[Nn][Oo])
 # Package tries to use these if gcc accepts them, but that doesn't
 # mean that we universally can *run* the executables
 BUILDLINK_TRANSFORM+=  rm:-fPIE
 BUILDLINK_TRANSFORM+=  rm:-pie
+.endif
 
 BUILDLINK_TRANSFORM.OpenBSD+=  rm:-lrt
 



Home | Main Index | Thread Index | Old Index