gengenrtl needs to link with libintl
Zack Weinberg
zack@codesourcery.com
Wed Nov 7 06:06:00 GMT 2001
On Wed, Nov 14, 2001 at 03:37:50PM -0500, DJ Delorie wrote:
>
> > > DJ may do a merge from glibc. If he does, then I think ENABLE_NLS should
> > > be undefined rather than HAVE_LIBINTL_H.
> >
> > Should I hold off for this merge, or apply the patch now and we can
> > change it later if DJ does his merge?
>
> I merged that change already.
Alright - ok to apply this version of the patch?
zw
* mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
defined (prevents link errors when gettext isn't in the system
library).
===================================================================
Index: mkconfig.sh
--- mkconfig.sh 2001/08/13 15:52:19 1.6
+++ mkconfig.sh 2001/11/19 08:36:20
@@ -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.
More information about the Gcc-bugs
mailing list