pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/kcoreaddons Workaround GNU ld bug on NetBSD by d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9734a9f0a41c
branches:  trunk
changeset: 348889:9734a9f0a41c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Jun 19 23:00:30 2016 +0000

description:
Workaround GNU ld bug on NetBSD by dropping --fatal-warnings from the
linker flags.

diffstat:

 devel/kcoreaddons/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 1166551eb364 -r 9734a9f0a41c devel/kcoreaddons/Makefile
--- a/devel/kcoreaddons/Makefile        Sun Jun 19 22:59:30 2016 +0000
+++ b/devel/kcoreaddons/Makefile        Sun Jun 19 23:00:30 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2016/05/26 08:29:04 markd Exp $
+# $NetBSD: Makefile,v 1.2 2016/06/19 23:00:30 joerg Exp $
 
 DISTNAME=      kcoreaddons-${KF5VER}
 CATEGORIES=    devel
@@ -9,6 +9,14 @@
 
 .include "../../meta-pkgs/kf5/Makefile.common"
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD"
+# Work-around bad use-warning check in GNU ld 2.26
+# /usr/lib/librpcsvc.so.1: warning: warning: this program uses xdr_peername(), which is deprecated and buggy.
+# is triggered, even though the current linker output contains
+# no references tto it.
+BUILDLINK_TRANSFORM+=  rm:-Wl,--fatal-warnings
+.endif
 
 .include "../../databases/shared-mime-info/buildlink3.mk"
 .include "../../mk/fam.buildlink3.mk"



Home | Main Index | Thread Index | Old Index