pkgsrc/lang/sather/patches/patch-ae
joerg 3191760e3c Don't hard-code /usr/bin/cpp, use tradcpp.
Make return type errors non-fatal for clang.
2013-08-30 22:36:51 +00:00

35 lines
885 B
Text

$NetBSD: patch-ae,v 1.4 2013/08/30 22:36:51 joerg Exp $
--- Makefile.orig Thu Nov 4 08:04:28 1999
+++ Makefile Thu May 2 17:09:46 2002
@@ -23,15 +23,15 @@
# Standard things
# CMP=cmp
-RANLIB=ranlib
-MV=mv
-AR=ar
+RANLIB?=ranlib
+MV?=mv
+AR?=ar
RM=rm -f
LN=ln -sf
-CP=cp
+CP?=cp
-CPP=/lib/cpp -C -P
-CC=gcc
+CPP=tradcpp -C -P
+CC?=gcc
EXEC_SUFFIX=
# CC is only used for bootstrapping, check System/Common/CONFIG.proto if
# you want to change it for all Sather compilations
@@ -91,7 +91,7 @@
# The platform to use if not overridden by a -<platform> option
# or the SATHER_PLATFORM environment variable
# Should be edited for a particular system
-DEFAULT_PLATFORM=linux
+DEFAULT_PLATFORM=${LOWER_OPSYS}
# The platform used to compile the boot compiler. Usually just default, but has to
# be one of: freebsd, hpux_at, iris-4, linux, osf_at, solaris, solaris_at, unix,