summaryrefslogtreecommitdiff
path: root/editors/emacs20
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-10-27 20:47:53 +0000
committerjoerg <joerg@pkgsrc.org>2013-10-27 20:47:53 +0000
commit8d39904ea20f8ccdb89c16efc3b051fe25004e06 (patch)
treed5def61389405078d427466971fedaeddfdfa10f /editors/emacs20
parentf455548475b095352e49b72b3b25347b02732774 (diff)
downloadpkgsrc-8d39904ea20f8ccdb89c16efc3b051fe25004e06.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/emacs20')
-rw-r--r--editors/emacs20/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/editors/emacs20/Makefile b/editors/emacs20/Makefile
index 818c117f0a6..baf76212813 100644
--- a/editors/emacs20/Makefile
+++ b/editors/emacs20/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2013/10/27 20:41:49 joerg Exp $
+# $NetBSD: Makefile,v 1.50 2013/10/27 20:47:53 joerg Exp $
DISTNAME= emacs-20.7
PKGNAME= ${DISTNAME:S/emacs/emacs20/}
@@ -58,6 +58,15 @@ CHECK_WRKREF_SKIP+= bin/emacs-20.7
LDFLAGS+= -Wl,-z,nocombreloc
.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
+
# NetBSD < 5.99.24 uses termcap; afterwards terminfo. Emacs needs to be told.
.if (${OPSYS} == "NetBSD") && !exists(/usr/include/term.h)
CPPFLAGS+=-D__NETBSD_USE_TERMCAP__