summaryrefslogtreecommitdiff
path: root/editors/emacs23
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
commit77c3a1ce2cf8ccef223fbffdfaba0d5861532545 (patch)
treed5def61389405078d427466971fedaeddfdfa10f /editors/emacs23
parentc2569bde4038512fe4e1c2a92091f7f0998b6043 (diff)
downloadpkgsrc-77c3a1ce2cf8ccef223fbffdfaba0d5861532545.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/emacs23')
-rw-r--r--editors/emacs23/Makefile.common11
1 files changed, 10 insertions, 1 deletions
diff --git a/editors/emacs23/Makefile.common b/editors/emacs23/Makefile.common
index 5faa242cb16..02c44258b23 100644
--- a/editors/emacs23/Makefile.common
+++ b/editors/emacs23/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2013/02/23 23:46:37 dholland Exp $
+# $NetBSD: Makefile.common,v 1.3 2013/10/27 20:47:53 joerg Exp $
#
# used by editors/emacs23/Makefile
# used by editors/emacs23-nox11/Makefile
@@ -60,6 +60,15 @@ CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION}
CFLAGS+= -fno-pie
.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
+
.if (${OPSYS} == "NetBSD") && exists(/usr/include/term.h)
CPPFLAGS+= -DTERMINFO
.elif ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"