mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is defined (prevents link errors...
authorZack Weinberg <zack@codesourcery.com>
Mon, 19 Nov 2001 23:12:41 +0000 (23:12 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 19 Nov 2001 23:12:41 +0000 (23:12 +0000)
* mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
defined (prevents link errors when gettext isn't in the system
library).

From-SVN: r47189

gcc/ChangeLog
gcc/mkconfig.sh

index 68704ef0264ffb4c01295bfcf47d8d74db2621d8..5cfaeb1a607ff2583b673af8fec432f50f5e2ec6 100644 (file)
@@ -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.
index 7de903cbc5fb2944401a82934407e9c9e412921a..fde254a86dd433053dcce69804a2caa4b4ff1acf 100644 (file)
@@ -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.