summaryrefslogtreecommitdiff
path: root/libexec/ld.so/hppa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-27 22:05:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-27 22:05:02 +0000
commite8ace5385d08547f29e37b66924b8ceaddf4caea (patch)
tree83445bdcc2e57a1ddd62dc913443196632490efe /libexec/ld.so/hppa
parent7f5398b1f45a6105b16eeb5672676e0ada0e6d37 (diff)
hppa & sh use support functions from libgcc. Rather than linking against
the library, extract the specific pieces and link them directly. ok kettenis visa
Diffstat (limited to 'libexec/ld.so/hppa')
-rw-r--r--libexec/ld.so/hppa/Makefile.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/libexec/ld.so/hppa/Makefile.inc b/libexec/ld.so/hppa/Makefile.inc
index cf7cf57a212..975a412c389 100644
--- a/libexec/ld.so/hppa/Makefile.inc
+++ b/libexec/ld.so/hppa/Makefile.inc
@@ -1,5 +1,10 @@
-# $OpenBSD: Makefile.inc,v 1.2 2017/08/27 21:59:52 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2017/08/27 22:05:01 deraadt Exp $
CFLAGS += -fpic
AFLAGS += -fpic
-LDADD= `$(CC) -print-libgcc-file-name`
+
+# extract components from libgcc.a
+MDOBJ= _dyncall.o _remU.o _remI.o _divI.o _divU.o _div_const.o
+${MDOBJ}:
+ ar x `$(CC) -print-libgcc-file-name` ${MDOBJ}
+OBJS+=${MDOBJ}