diff options
author | tnn <tnn@pkgsrc.org> | 2020-05-17 11:20:57 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2020-05-17 11:20:57 +0000 |
commit | 1fdb935ce4e782c8ad98e3e6d9b8c9df8c9eabbe (patch) | |
tree | f7bd9450c7a04830acec21917e346816bf726e16 /www | |
parent | 59a2848422dc3f8a55ed81e6eed59076be386b67 (diff) | |
download | pkgsrc-1fdb935ce4e782c8ad98e3e6d9b8c9df8c9eabbe.tar.gz |
firefox: mend build failure on NetBSD 8
Build with clang, but with pkgsrc libstdc++ instead of from base.
This is needed because base doesn't have the necessary C++17 STL headers.
We don't really have any infrastructure to manage this properly so
kludge it manually into the package.
Diffstat (limited to 'www')
-rw-r--r-- | www/firefox/mozilla-common.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/www/firefox/mozilla-common.mk b/www/firefox/mozilla-common.mk index 8a326b13474..2d916f72c70 100644 --- a/www/firefox/mozilla-common.mk +++ b/www/firefox/mozilla-common.mk @@ -1,4 +1,4 @@ -# $NetBSD: mozilla-common.mk,v 1.167 2020/05/15 06:59:25 gutteridge Exp $ +# $NetBSD: mozilla-common.mk,v 1.168 2020/05/17 11:20:57 tnn Exp $ # # common Makefile fragment for mozilla packages based on gecko 2.0. # @@ -248,6 +248,19 @@ PKG_CC= ${PREFIX}/bin/clang PKG_CXX= ${PREFIX}/bin/clang++ BUILDLINK_DEPMETHOD.clang= build .include "../../lang/clang/buildlink3.mk" +.if !empty(MACHINE_PLATFORM:MNetBSD-8.*-*) +BUILDLINK_DEPMETHOD.gcc8= full +.include "../../lang/gcc8/buildlink3.mk" +CWRAPPERS_PREPEND.cxx+= \ + -L${BUILDLINK_PREFIX.gcc8}/gcc8/lib \ + ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.gcc8}/gcc8/lib \ + -stdlib++-isystem \ + ${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++ \ + -stdlib++-isystem \ + ${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++/${MACHINE_GNU_PLATFORM} \ + -stdlib++-isystem \ + ${BUILDLINK_PREFIX.gcc8}/gcc8/include/c++/backward +.endif BUILDLINK_DEPMETHOD.rust= build BUILDLINK_API_DEPENDS.rust+= rust>=1.41.0 .include "../../lang/rust/buildlink3.mk" |