summaryrefslogtreecommitdiff
path: root/editors/emacs22/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'editors/emacs22/Makefile.common')
-rw-r--r--editors/emacs22/Makefile.common11
1 files changed, 10 insertions, 1 deletions
diff --git a/editors/emacs22/Makefile.common b/editors/emacs22/Makefile.common
index f6de642676a..bccfd2d0cbc 100644
--- a/editors/emacs22/Makefile.common
+++ b/editors/emacs22/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2013/04/08 11:17:12 rodent Exp $
+# $NetBSD: Makefile.common,v 1.5 2013/10/27 20:47:53 joerg Exp $
#
# used by editors/emacs22/Makefile
# used by editors/emacs22-nox11/Makefile
@@ -67,6 +67,15 @@ CPP+= -P
CONFIGURE_ENV+= CPP=${CPP:Q}
.endif
+.if (${OPSYS} == "NetBSD") && \
+ !exists(/usr/lib/libgcc_s.so) && !exists(/usr/lib/libgcc.a)
+# NetBSD with native Clang doesn't provide libgcc, everything is in libc.
+pre-configure: fake-libgcc
+
+fake-libgcc:
+ ${AR} q ${BUILDLINK_DIR}/lib/libgcc.a
+.endif
+
post-extract:
cp ${FILESDIR}/site-init.el ${WRKSRC}/lisp
cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s