Module Name: src Committed By: plunky Date: Wed Feb 3 22:13:13 UTC 2010
Modified Files: src/external/bsd/pcc: Makefile.inc config.h Log Message: fix the embedded VERSSTR by providing the correct machine architecture at build time, and adding an import date to the version. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/pcc/Makefile.inc cvs rdiff -u -r1.3 -r1.4 src/external/bsd/pcc/config.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/pcc/Makefile.inc diff -u src/external/bsd/pcc/Makefile.inc:1.2 src/external/bsd/pcc/Makefile.inc:1.3 --- src/external/bsd/pcc/Makefile.inc:1.2 Wed Jan 20 11:45:54 2010 +++ src/external/bsd/pcc/Makefile.inc Wed Feb 3 22:13:13 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.2 2010/01/20 11:45:54 plunky Exp $ +# $NetBSD: Makefile.inc,v 1.3 2010/02/03 22:13:13 plunky Exp $ PCC_DIR:=${.PARSEDIR} PCC_DIST=${PCC_DIR}/dist/pcc @@ -16,9 +16,12 @@ ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo .endif +VERSSTR = PACKAGE_STRING PACKAGE_CHECKOUT "for ${HOST_OSTYPE}" + libexecdir = /usr/libexec includedir = /usr/include +CPPFLAGS+= -DVERSSTR=${VERSSTR:Q} CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}/\" CPPFLAGS+= -DINCLUDEDIR=\"${includedir}/\" CPPFLAGS+= -Dos_${TARGOS} Index: src/external/bsd/pcc/config.h diff -u src/external/bsd/pcc/config.h:1.3 src/external/bsd/pcc/config.h:1.4 --- src/external/bsd/pcc/config.h:1.3 Fri Sep 4 00:50:04 2009 +++ src/external/bsd/pcc/config.h Wed Feb 3 22:13:13 2010 @@ -187,7 +187,10 @@ /* #undef TLS */ /* Version string */ -#define VERSSTR "pcc 0.9.9 for i386-pc-netbsdelf, g...@sparky Wed Aug 13 22:19:18 EST 2008" +/* #define VERSSTR "pcc 0.9.9 for i386-pc-netbsdelf, g...@sparky Wed Aug 13 22:19:18 EST 2008" */ + +/* PCC checkout date */ +#define PACKAGE_CHECKOUT " [20090902] " /* Size of wide character type */ #define WCHAR_SIZE 4