Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pcc fix the embedded VERSSTR by providing the c...



details:   https://anonhg.NetBSD.org/src/rev/710a1430eacb
branches:  trunk
changeset: 751433:710a1430eacb
user:      plunky <plunky%NetBSD.org@localhost>
date:      Wed Feb 03 22:13:13 2010 +0000

description:
fix the embedded VERSSTR by providing the correct machine architecture
at build time, and adding an import date to the version.

diffstat:

 external/bsd/pcc/Makefile.inc |  5 ++++-
 external/bsd/pcc/config.h     |  5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r a21e3a4ec870 -r 710a1430eacb external/bsd/pcc/Makefile.inc
--- a/external/bsd/pcc/Makefile.inc     Wed Feb 03 22:07:50 2010 +0000
+++ b/external/bsd/pcc/Makefile.inc     Wed Feb 03 22:13:13 2010 +0000
@@ -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}
diff -r a21e3a4ec870 -r 710a1430eacb external/bsd/pcc/config.h
--- a/external/bsd/pcc/config.h Wed Feb 03 22:07:50 2010 +0000
+++ b/external/bsd/pcc/config.h Wed Feb 03 22:13:13 2010 +0000
@@ -187,7 +187,10 @@
 /* #undef TLS */
 
 /* Version string */
-#define VERSSTR "pcc 0.9.9 for i386-pc-netbsdelf, greg@sparky Wed Aug 13 22:19:18 EST 2008"
+/* #define VERSSTR "pcc 0.9.9 for i386-pc-netbsdelf, greg@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



Home | Main Index | Thread Index | Old Index