Don't build with -fno-builtin.

This was meant to reveal some problems decades ago, but actually it
now hides potential problems (with wrong printf format strings).

Format string problems will be dealt with after the update to gs9.04.

Thanks to espie@ who noticed that gs uses -fno-builtin.
This commit is contained in:
kili 2011-11-13 21:18:40 +00:00
parent 8bbf38cf96
commit 494f00bf5b
2 changed files with 13 additions and 4 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.87 2011/09/16 11:13:41 espie Exp $
# $OpenBSD: Makefile,v 1.88 2011/11/13 21:18:40 kili Exp $
COMMENT= GNU PostScript interpreter
VERSION= 9.02
DISTNAME= ghostscript-${VERSION}
REVISION= 2
REVISION= 3
CATEGORIES= print lang
SHARED_LIBS= gs 13.0

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-base_unix-gcc_mak,v 1.2 2011/07/06 13:49:17 kili Exp $
$OpenBSD: patch-base_unix-gcc_mak,v 1.3 2011/11/13 21:18:40 kili Exp $
--- base/unix-gcc.mak.orig Thu Mar 3 21:23:43 2011
+++ base/unix-gcc.mak Mon Jul 4 17:21:25 2011
+++ base/unix-gcc.mak Sun Nov 13 19:29:43 2011
@@ -30,6 +30,7 @@ PSLIBDIR=./lib
PSRESDIR=./Resource
PSGENDIR=./obj
@ -55,6 +55,15 @@ $OpenBSD: patch-base_unix-gcc_mak,v 1.2 2011/07/06 13:49:17 kili Exp $
# Define the name of the linker for the final link step.
# Normally this is the same as the C compiler.
@@ -229,7 +238,7 @@ CCLD=$(CC)
# the 2.7.0-2.7.2 optimizer bug, either "-Dconst=" or
# "-Wcast-qual -Wwrite-strings" is automatically included.
-GCFLAGS=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common
+GCFLAGS=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-common
# Define the added flags for standard, debugging, profiling
# and shared object builds.
@@ -366,8 +375,6 @@ DISPLAY_DEV=
# Choose the device(s) to include. See devs.mak for details,
# devs.mak and contrib.mak for the list of available devices.