summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2007-08-25 09:33:57 +0000
committerrillig <rillig>2007-08-25 09:33:57 +0000
commit5106aeddedadbf22495908e0a9fabe288f2140d6 (patch)
treef87245961be71235c9011949c363f7689e71260b /pkgtools
parent6e77c04e03a6fd40df88502d2dab41270951c53b (diff)
downloadpkgsrc-5106aeddedadbf22495908e0a9fabe288f2140d6.tar.gz
Only gcc understands those -W* flags for warnings.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in b/pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in
index 6efb36be106..bc5ba38fe30 100644
--- a/pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in
+++ b/pkgtools/bootstrap-mk-files/files/mods/bsd.own.mk.in
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk.in,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $
+# $NetBSD: bsd.own.mk.in,v 1.2 2007/08/25 09:33:57 rillig Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@@ -129,9 +129,11 @@ OBJECT_FMT?=ELF
OBJECT_FMT?=a.out
.endif
+.if ${CC:M*gcc*} != ""
.if ${MACHINE_ARCH} == "x86_64"
CFLAGS+=-Wno-format -fno-builtin
.endif
+.endif
# Location of the file that contains the major and minor numbers of the
# version of a shared library. If this file exists a shared library