diff options
| author | christos <christos@NetBSD.org> | 2016-10-07 17:12:59 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-10-07 17:12:59 +0000 |
| commit | 6bc2ff20360a159e880280cab5fa62ea202c3973 (patch) | |
| tree | 7b44ad308cf838de2b04fcb653389c0f8da541f6 /libexec/ld.elf_so/Makefile | |
| parent | 8392c57bc74a8c954eb7ce132ec9311c2a16dd2d (diff) | |
Mips o32 needs -lgcc for __udivdi3 in headers.c for fast_divide32_prepare().
Diffstat (limited to 'libexec/ld.elf_so/Makefile')
| -rw-r--r-- | libexec/ld.elf_so/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index 46255f5e4fa..9371f901114 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@ -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} |
