aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2001-11-19 23:12:41 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-11-19 23:12:41 +0000
commit497e89e14f87f1533a7d4e032be88c8e2666503a (patch)
tree9603927e1a73c339d4b429a8234e24e1ff230c35 /gcc
parent4f99294bd3aaa36e2bc53e522b7cfbf1f8e8d8eb (diff)
downloadgcc-497e89e14f87f1533a7d4e032be88c8e2666503a.zip
gcc-497e89e14f87f1533a7d4e032be88c8e2666503a.tar.gz
gcc-497e89e14f87f1533a7d4e032be88c8e2666503a.tar.bz2
mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is defined (prevents link errors when...
* mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is defined (prevents link errors when gettext isn't in the system library). From-SVN: r47189
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/mkconfig.sh6
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 68704ef..5cfaeb1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-19 Zack Weinberg <zack@codesourcery.com>
+
+ * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
+ defined (prevents link errors when gettext isn't in the system
+ library).
+
2001-11-19 DJ Delorie <dj@redhat.com>
* read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh
index 7de903c..fde254a 100644
--- a/gcc/mkconfig.sh
+++ b/gcc/mkconfig.sh
@@ -67,6 +67,12 @@ case $output in
;;
esac
+# Prevent obstack.c from thinking it can do i18n of its error message
+# when it's being linked against a build-side program.
+echo '#ifdef GENERATOR_FILE'
+echo '# undef ENABLE_NLS'
+echo '#endif'
+
) > $output.T
# Avoid changing the actual file if possible.