Module Name: src
Committed By: christos
Date: Fri Oct 7 17:12:59 UTC 2016
Modified Files:
src/libexec/ld.elf_so: Makefile
Log Message:
Mips o32 needs -lgcc for __udivdi3 in headers.c for fast_divide32_prepare().
To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 src/libexec/ld.elf_so/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ld.elf_so/Makefile
diff -u src/libexec/ld.elf_so/Makefile:1.133 src/libexec/ld.elf_so/Makefile:1.134
--- src/libexec/ld.elf_so/Makefile:1.133 Thu Jun 16 07:34:13 2016
+++ src/libexec/ld.elf_so/Makefile Fri Oct 7 13:12:59 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2016/06/16 11:34:13 christos Exp $
+# $NetBSD: Makefile,v 1.134 2016/10/07 17:12:59 christos Exp $
#
# NOTE: when changing ld.so, ensure that ldd still compiles.
#
@@ -62,6 +62,9 @@ COPTS+= -fvisibility=hidden
.if defined(MLIBDIR)
PROG= ld.elf_so-${MLIBDIR}
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\"
+. if ${MLIBDIR} == "o32"
+NEEDLIBGCC?= yes
+. endif
.else
PROG= ld.elf_so
.endif
@@ -134,7 +137,7 @@ LDADD+= -lc
DPADD+= ${CLIBOBJ}/libc.a
.endif
-.if ${MACHINE_CPU} == "hppa" || ${MACHINE_CPU} == "sh3"
+.if ${MACHINE_CPU} == "hppa" || ${MACHINE_CPU} == "sh3" || ${NEEDLIBGCC:Uno} == "yes"
# for $$divU, $$remU etc. (millicode)
LDADD+= -lgcc
DPADD+= ${LIBGCC}