summary refs log tree commit diff
path: root/sysdeps/wordsize-32
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-16 19:20:10 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-16 19:20:10 +0000
commit510afb6420c517607d7084b40998ebd06a73c69d (patch)
tree5b30e2af677cb3125656b149ba30071ffc927084 /sysdeps/wordsize-32
parent478f33c9f70dec247e132e2e1b4ba836fa2d1f6d (diff)
downloadglibc-510afb6420c517607d7084b40998ebd06a73c69d.tar.gz
glibc-510afb6420c517607d7084b40998ebd06a73c69d.tar.xz
glibc-510afb6420c517607d7084b40998ebd06a73c69d.zip
* sysdeps/wordsize-32/Makefile (CPPFLAGS-divdi3.c): Set to
	-Din_divdi3_c.
	* sysdeps/wordsize-32/symbol-hacks.h: Skip if in_divdi3_c is defined.
Diffstat (limited to 'sysdeps/wordsize-32')
-rw-r--r--sysdeps/wordsize-32/Makefile1
-rw-r--r--sysdeps/wordsize-32/symbol-hacks.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/wordsize-32/Makefile b/sysdeps/wordsize-32/Makefile
index b50c0b1635..82beac44ed 100644
--- a/sysdeps/wordsize-32/Makefile
+++ b/sysdeps/wordsize-32/Makefile
@@ -2,5 +2,6 @@ ifeq ($(subdir),csu)
 ifeq (yes,$(build-shared))
 sysdep_routines += divdi3
 shared-only-routines += divdi3
+CPPFLAGS-divdi3.c = -Din_divdi3_c
 endif
 endif
diff --git a/sysdeps/wordsize-32/symbol-hacks.h b/sysdeps/wordsize-32/symbol-hacks.h
index ee53e1257f..c167cb9472 100644
--- a/sysdeps/wordsize-32/symbol-hacks.h
+++ b/sysdeps/wordsize-32/symbol-hacks.h
@@ -22,7 +22,7 @@
    therefore we get PLTs.  Unnecessarily so.  Changing gcc is a big
    task which might not be worth it so we play tricks with the
    assembler.  */
-#if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED
+#if !defined __ASSEMBLER__ && !defined in_divdi3_c && !defined NOT_IN_libc && defined SHARED
 asm ("__divdi3 = __divdi3_internal");
 asm ("__udivdi3 = __udivdi3_internal");
 asm ("__moddi3 = __moddi3_internal");