summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2011-09-24 07:15:07 +0000
committerminskim <minskim@pkgsrc.org>2011-09-24 07:15:07 +0000
commit2d434435a7f4e0190dcdaf328237447e67b5a371 (patch)
tree2787879e92d40f72a4a20cdef3bd0c1d8a944408 /editors
parent19e734cc6e7bf22de048afc6bada8e094be48b0a (diff)
downloadpkgsrc-2d434435a7f4e0190dcdaf328237447e67b5a371.tar.gz
Teach configure where to find crt*.o files on NetBSD.
This should fix PR 45395.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs-snapshot/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/emacs-snapshot/Makefile.common b/editors/emacs-snapshot/Makefile.common
index f020635daae..a4a57be2ef3 100644
--- a/editors/emacs-snapshot/Makefile.common
+++ b/editors/emacs-snapshot/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2011/08/25 03:13:44 minskim Exp $
+# $NetBSD: Makefile.common,v 1.33 2011/09/24 07:15:07 minskim Exp $
DISTNAME= emacs-snapshot_20110821.orig
PKGNAME= ${DISTNAME:S/snapshot_/${EMACS_VERSION}./:S/.orig//}
@@ -57,6 +57,10 @@ CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION}
CPPFLAGS+= -DDFLY_CRT_USRLIB
.endif
+.if ${OPSYS} == "NetBSD" && exists(/usr/lib/crti.o)
+CONFIGURE_ARGS+= --with-crt-dir=/usr/lib
+.endif
+
.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"
.include "../../mk/curses.buildlink3.mk"
.else