This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC Floating point symbols defined both in libgcc and glibc
- From: Ranjani Murthy <ranmur at gmail dot com>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Thu, 28 Apr 2005 17:37:35 -0700
- Subject: [PATCH] PPC Floating point symbols defined both in libgcc and glibc
- Reply-to: Ranjani Murthy <ranmur at gmail dot com>
Some floating point symbols are defined in both libgcc and libc and
they produce mulitple definition errors while compiling. This patch
removes them from the libc library. Patch and test case are below:
--- libc/sysdeps/powerpc/nofpu/Makefile.orig
+++ libc/sysdeps/powerpc/nofpu/Makefile
@@ -1,7 +1,7 @@
# Makefile fragment for PowerPC with no FPU.
ifeq ($(subdir),soft-fp)
-sysdep_routines += $(gcc-single-routines) $(gcc-double-routines) sim-full
+sysdep_routines += sim-full
endif
ifeq ($(subdir),math)
Test case to reproduce the problem:
#include <stdio.h>
extern int __ledf2(double, double);
int main()
{
return __ledf2(0, 0);
}