Module Name:    src
Committed By:   christos
Date:           Sun Jun  5 23:08:17 UTC 2011

Modified Files:
        src/libexec/ld.elf_so: Makefile

Log Message:
Add libgcc_pic for millicode.


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 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.106 src/libexec/ld.elf_so/Makefile:1.107
--- src/libexec/ld.elf_so/Makefile:1.106	Mon May 30 12:30:01 2011
+++ src/libexec/ld.elf_so/Makefile	Sun Jun  5 19:08:17 2011
@@ -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+=		-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 @@
 DPADD+=		${CLIBOBJ}/libc.a
 .endif
 
+.if ${MACHINE_CPU} == "hppa"
+# for $$divU, $$remU etc. (millicode)
+LDADD+=		-lgcc_pic
+DPADD+=		${LIBGCC_PIC}
+.endif
+
 STRIPFLAG=
 
 .PATH: $M

Reply via email to