diff options
| author | christos <christos@NetBSD.org> | 2011-06-05 23:08:17 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2011-06-05 23:08:17 +0000 |
| commit | 75d00a5a5ecc24ac3f7f69b31e8eee5d3d487b04 (patch) | |
| tree | 84b36a2984fe633617bab272fca5dbec3b9e965d /libexec/ld.elf_so/Makefile | |
| parent | 0f203c68eaca8141487d99c60ca2f18f4d45a442 (diff) | |
Add libgcc_pic for millicode.
Diffstat (limited to 'libexec/ld.elf_so/Makefile')
| -rw-r--r-- | libexec/ld.elf_so/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libexec/ld.elf_so/Makefile b/libexec/ld.elf_so/Makefile index 849d8582465..926d79befdf 100644 --- a/libexec/ld.elf_so/Makefile +++ b/libexec/ld.elf_so/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.106 2011/05/30 16:30:01 joerg Exp $ +# $NetBSD: Makefile,v 1.107 2011/06/05 23:08:17 christos Exp $ # # NOTE: when changing ld.so, ensure that ldd still compiles. # @@ -98,6 +98,7 @@ DBG= -O3 -fomit-frame-pointer DBG+= -mno-3dnow -mno-mmx -mno-sse -mno-sse2 -mno-sse3 .endif + .if ${SHLIBDIR} != ${LIBDIR} CPPFLAGS+= -DRTLD_DEFAULT_LIBRARY_PATH=\"${SHLIBDIR}:${LIBDIR}\" .endif @@ -118,6 +119,12 @@ LDADD+= -lc DPADD+= ${CLIBOBJ}/libc.a .endif +.if ${MACHINE_CPU} == "hppa" +# for $$divU, $$remU etc. (millicode) +LDADD+= -lgcc_pic +DPADD+= ${LIBGCC_PIC} +.endif + STRIPFLAG= .PATH: $M |
