From 75c4606003ccd041fe2adf919cc1f1a4fde6d39f Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Wed, 2 Sep 2009 20:14:19 -0700 Subject: [PATCH] Fixes for FreeBSD build. --- ChangeLog | 5 +++++ po/Rules-quot | 2 +- src/ChangeLog | 4 ++++ src/test.c | 9 +++++++-- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0af82930..5d4e37c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-02 Micah Cowan + + * po/Rules-quot (en_US.po-update): Remove use of GNU make's + non-portable $^ variable. + 2009-08-27 Micah Cowan * NEWS: Mention the changes to exit codes. diff --git a/po/Rules-quot b/po/Rules-quot index 63e2d1eb..a38a2bed 100644 --- a/po/Rules-quot +++ b/po/Rules-quot @@ -54,4 +54,4 @@ mostlyclean-quot: en_US.po: en_US.po-update en_US.po-update: en@quot.po - cp $^ en_US.po + cp en@quot.po en_US.po diff --git a/src/ChangeLog b/src/ChangeLog index 066081d6..854626e9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2009-09-02 Micah Cowan + * test.c: Added definition of program_name variable, required by + lib/error.c (libgnu.a). Doesn't cause problems until you try to + build on a non-GNU system... + * build_info.c.in: Removed useless "+gettext" feature ad. 2009-08-29 Steven Schubiger diff --git a/src/test.c b/src/test.c index 3187900d..377afe23 100644 --- a/src/test.c +++ b/src/test.c @@ -63,11 +63,16 @@ all_tests() return NULL; } +char *program_name; /* Needed by lib/error.c. */ int -main (void) +main (int argc, char *argv[]) { - const char *result = all_tests(); + const char *result; + + program_name = argv[0]; + + result = all_tests(); if (result != NULL) { -- 2.39.2