diff options
author | joerg <joerg@pkgsrc.org> | 2013-10-27 20:47:53 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-10-27 20:47:53 +0000 |
commit | 8d39904ea20f8ccdb89c16efc3b051fe25004e06 (patch) | |
tree | d5def61389405078d427466971fedaeddfdfa10f /editors/emacs21 | |
parent | f455548475b095352e49b72b3b25347b02732774 (diff) | |
download | pkgsrc-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/emacs21')
-rw-r--r-- | editors/emacs21/Makefile.common | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/editors/emacs21/Makefile.common b/editors/emacs21/Makefile.common index 7032806985d..0ebe8940a91 100644 --- a/editors/emacs21/Makefile.common +++ b/editors/emacs21/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.14 2013/10/27 20:41:49 joerg Exp $ +# $NetBSD: Makefile.common,v 1.15 2013/10/27 20:47:53 joerg Exp $ # # used by editors/emacs21/Makefile # used by editors/emacs21-nox11/Makefile @@ -90,6 +90,15 @@ TRADCPP= ${CPP} -traditional-cpp .endif ALL_ENV+= TRADCPP=${TRADCPP:Q} +.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 + INFO_FILES= yes REPLACE_PERL= lib-src/grep-changelog |