From: robert Date: Mon, 5 Jun 2017 09:51:27 +0000 (+0000) Subject: exclude more objects from the readelf output when building syspatches (needed on... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0f47df1fd3dee3decb70492396346f63768e9a2a;p=openbsd exclude more objects from the readelf output when building syspatches (needed on i386) --- diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 78077c72e43..3d6ea9d21d5 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.lib.mk,v 1.81 2017/04/27 17:41:47 robert Exp $ +# $OpenBSD: bsd.lib.mk,v 1.82 2017/06/05 09:51:27 robert Exp $ # $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $ # @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 @@ -186,7 +186,7 @@ ${FULLSHLIBNAME}: ${SOBJS} ${DPADD} .if defined(SYSPATCH) ${CC} -shared ${PICFLAG} -o ${.TARGET} \ `readelf -Ws ${LIBDIR}/${.TARGET} | awk '/ FILE/{gsub(/\..*/, ".so", $$NF); sub(".*/", "", $$NF); print $$NF}' | \ - grep -v unwind-dw2` ${LDADD} + egrep -v "(cmll-586|libgcc2|unwind-dw2)"` ${LDADD} .else ${CC} -shared ${PICFLAG} -o ${.TARGET} \ `echo ${SOBJS} | tr ' ' '\n' | sort -R` ${LDADD}