summaryrefslogtreecommitdiff
path: root/databases/gnats/patches/patch-af
blob: e7a5da41946e5c7426c4c615129c60102ef4779f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-af,v 1.1 2004/01/20 17:37:58 seb Exp $

--- libiberty/Makefile.in.orig	1998-11-05 19:54:14.000000000 +0000
+++ libiberty/Makefile.in
@@ -236,7 +236,7 @@ needed2.awk: $(srcdir)/functions.def Mak
 	echo "# !Automatically generated from $(srcdir)/functions.def"\
 	  "- DO NOT EDIT!" >needed2.awk
 	grep '^DEFVAR(' < $(srcdir)/functions.def \
-	 | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
+	 | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ \&\& $$0 !~ /warning: reference to compatibility .*; include .* for correct reference/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
 	 >>needed2.awk
 	grep '^DEFFUNC(' < $(srcdir)/functions.def \
 	 | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \