__USER_LABEL_PREFIX__ for sh3 gcc
Izumi Tsutsui <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sh3,gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
Today I notice build.sh fails in src/tools/texinfo on dreamcast.
(Undefined symbol _libintl_gettext)
The problem is texinfo/intl/libgnuintl.h uses __USER_LABEL_PREFIX__
and src/gnu/dist/toolchain/gcc/config/sh/sh.h defines it "_"
while shle--netbsdelf toolchain has no leading underscores.
Is it ok to apply the attached patch?
Index: gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h,v
retrieving revision 1.4
diff -u -r1.4 netbsd-elf.h
--- gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h 2003/01/24 22:40:04 1.4
+++ gnu/dist/toolchain/gcc/config/sh/netbsd-elf.h 2003/01/25 16:35:57
@@ -52,6 +52,9 @@
/* NetBSD uses the SVR4 convention for user-visible assembler symbols,
not the SH convention. */
+#undef USER_LABEL_PREFIX
+#define USER_LABEL_PREFIX ""
+
#undef LOCAL_LABEL_PREFIX
#define LOCAL_LABEL_PREFIX "."
---
Izumi Tsutsui
[email protected]