[patch]: fix mips64 symbol versioning detection
Guido Guenther
agx@sigxcpu.org
Fri Jul 18 16:11:00 GMT 2003
Hi,
currently symbol versioning on linux-mips n64 is not properly detected
due to a problem in configure.in. No $CFLAGS are passed on line 4801,
resulting in a n32 .o:
${CC-cc} -c $ASFLAGS conftest.s
CFLAGS (which contain -mabi=64) are passed in 4802 trying to build a n64
.so from a n32 .o which doesn't work:
${CC-cc} $CFLAGS $LDFLAGS -shared -o conftest.so conftest.o -nostartfiles \
-nostdlib -Wl,--version-script,conftest.map
Attached patch fixes this.
Regards,
-- Guido
-------------- next part --------------
2003-07-17 Guido Guenther <agx@sigxcpu.org>
* configure.in: pass $CFLAGS to ld --version-script test.
Index: configure.in
===================================================================
RCS file: /cvs/glibc/libc/configure.in,v
retrieving revision 1.401
diff -u -r1.401 configure.in
--- configure.in 3 Jul 2003 21:03:56 -0000 1.401
+++ configure.in 16 Jul 2003 18:35:18 -0000
@@ -1051,7 +1051,7 @@
global: sym;
} VERS_1;
EOF
- if ${CC-cc} -c $ASFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
+ if ${CC-cc} -c $ASFLAGS $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD; then
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $LDFLAGS -shared
-o conftest.so conftest.o
-nostartfiles -nostdlib
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030718/2e683fa8/attachment.sig>
More information about the Libc-alpha
mailing list