summaryrefslogtreecommitdiff
path: root/www/mozilla/patches/patch-aq
blob: 185a2652420b3dbaff6f0a900ee4d2d09420ac22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-aq,v 1.2 2001/05/11 00:37:46 taya Exp $

diff -ru ../Orig/mozilla/security/nss/lib/freebl/Makefile ./security/nss/lib/freebl/Makefile
--- ../Orig/mozilla/security/nss/lib/freebl/Makefile	Thu Mar 15 08:30:37 2001
+++ ./security/nss/lib/freebl/Makefile	Mon May  7 05:40:18 2001
@@ -265,6 +265,17 @@
 MPI_OBJS = $(addprefix $(OBJDIR)/$(PROG_PREFIX), $(MPI_SRCS:.c=$(OBJ_SUFFIX)))
 MPI_OBJS += $(addprefix $(OBJDIR)/$(PROG_PREFIX), $(MPI_USERS:.c=$(OBJ_SUFFIX)))
 
+#
+# for NetBSD pkgsrc system
+#	NetBSD pkgsrc set env. variable 'CFLAGS'.
+#	This cause CFLAG inherit from config/autoconfig.mk 
+#	CFLAG contains -pedantic and fail to compile dh.c
+#	SO filter-out -pedantic from CFLAGS
+#
+ifeq ($(OS_TARGET),NetBSD)
+	CFLAGS := $(filter-out -pedantic,$(CFLAGS))
+endif
+
 $(MPI_OBJS): $(MPI_HDRS) primes.c
 
 ifeq ($(SYSV_SPARC),1)