diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-08-27 22:05:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-08-27 22:05:02 +0000 |
commit | e8ace5385d08547f29e37b66924b8ceaddf4caea (patch) | |
tree | 83445bdcc2e57a1ddd62dc913443196632490efe /libexec/ld.so/hppa | |
parent | 7f5398b1f45a6105b16eeb5672676e0ada0e6d37 (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.inc | 9 |
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} |