Workaround too much linking. Use link.sh instead of --as-needed fro linker

until I'll find proper solution.

Should help with PR 47281.
This commit is contained in:
morr 2012-12-18 23:30:36 +00:00
parent f099b3e544
commit 7852e55e4f

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.53 2012/10/03 11:43:47 asau Exp $
# $NetBSD: Makefile,v 1.54 2012/12/18 23:30:36 morr Exp $
PKGNAME= vim-xaw-${VIM_VERSION}.${VIM_PATCHLEVEL}
PKGREVISION= 1
COMMENT= Vim editor (vi clone) with X11 Athena GUI
.include "../../editors/vim-share/Makefile.common"
@ -27,6 +27,12 @@ XAW_TYPE= standard
MAKE_ENV+= XAW_LIB="Xaw"
.endif
SUBST_CLASSES+= fix-linking
SUBST_STAGE.fix-linking= post-configure
SUBST_MESSAGE.fix-linking= Fixing linking
SUBST_FILES.fix-linking= auto/config.mk
SUBST_SED.fix-linking= -e 's,LINK_AS_NEEDED = .*,LINK_AS_NEEDED = no,g'
LIBS+= -lXaw
CHECK_INTERPRETER_SKIP+=${PKGMANDIR}/man1/gvim.1 ${PKGMANDIR}/man1/gview.1