summaryrefslogtreecommitdiff
path: root/editors/emacs22/Makefile.common
diff options
context:
space:
mode:
authorjoerg <joerg>2013-10-27 20:47:53 +0000
committerjoerg <joerg>2013-10-27 20:47:53 +0000
commit4821d542691b79e31052fcfb30a3291da16fd4a5 (patch)
treed5def61389405078d427466971fedaeddfdfa10f /editors/emacs22/Makefile.common
parentabb9ccb4c1b2f173dcbea0ab3e45b7de63132508 (diff)
downloadpkgsrc-4821d542691b79e31052fcfb30a3291da16fd4a5.tar.gz
NetBSD with native clang won't have libgcc, so fake a static library.
Avoids going to the great hacks in the build system to avoid it.
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