pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/arpd Remove "-Wall" option when compiling with GCC...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6d747c23f2e
branches:  trunk
changeset: 515304:c6d747c23f2e
user:      tron <tron%pkgsrc.org@localhost>
date:      Fri Jun 30 15:13:51 2006 +0000

description:
Remove "-Wall" option when compiling with GCC 4.1.x under NetBSD.
It gets confused by the definition of the ar_tha() macro.

diffstat:

 net/arpd/hacks.mk |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 97bd3b2b02bc -r c6d747c23f2e net/arpd/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/arpd/hacks.mk Fri Jun 30 15:13:51 2006 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: hacks.mk,v 1.1 2006/06/30 15:13:51 tron Exp $
+
+# GCC 4.1.x complains about a NULL argument to memcpy() because it gets
+# confused by the definition of the ar_tha() macro under NetBSD.
+.include "../../mk/compiler.mk"
+
+.if ${OPSYS} == "NetBSD" && !empty(CC_VERSION:Mgcc-4.1.*)
+PKG_HACKS+=            gcc41-null-warning
+BUILDLINK_TRANSFORM+=  rm:-Wall
+.endif



Home | Main Index | Thread Index | Old Index