diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-12-30 21:55:08 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-12-30 21:55:08 +0000 |
commit | 3d1ec8445e872d8b6365f39a103b51fdd64c20d8 (patch) | |
tree | 9e8d42fcfbb0718824b5df1b26de5dd126288cbf /share | |
parent | a1bb7d1836d5d0321c8b98b80f1fcc0770db5831 (diff) |
Define SOLIB when assembling for a shared-object library
ok tedu@
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.lib.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index abe6060625a..0d9ffdba88e 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.lib.mk,v 1.94 2018/10/18 14:25:14 naddy Exp $ +# $OpenBSD: bsd.lib.mk,v 1.95 2018/12/30 21:55:07 guenther 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 @@ -123,9 +123,9 @@ AFLAGS+= ${NOPIE_FLAGS} @rm -f ${.TARGET}.o .S.so .s.so: - @echo "${COMPILE.S} ${PICFLAG} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} \ + @echo "${COMPILE.S} ${PICFLAG} -DSOLIB ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} \ -o ${.TARGET}" - @${COMPILE.S} ${DFLAGS} -MF $@.d ${PICFLAG} ${CFLAGS:M-[IDM]*} \ + @${COMPILE.S} ${DFLAGS} -MF $@.d ${PICFLAG} -DSOLIB ${CFLAGS:M-[IDM]*} \ ${AINC} ${.IMPSRC} -o ${.TARGET}.o @-mv $@.d $*.d @${LD} -X -r ${.TARGET}.o -o ${.TARGET} |