pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/firefox
Module Name: pkgsrc
Committed By: tnn
Date: Fri Dec 24 12:09:48 UTC 2021
Modified Files:
pkgsrc/www/firefox: mozilla-common.mk
Log Message:
firefox: remove clang wrapper hacks, provide explicit path to clang
There's no apparent benefit to run "clang for cbindgen" nor the wasm
cross compiler through pkgsrc wrappers. It does however cause issues when
the base compiler is clang.
TODO: apply same change to firefox LTS
To generate a diff of this commit:
cvs rdiff -u -r1.215 -r1.216 pkgsrc/www/firefox/mozilla-common.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/firefox/mozilla-common.mk
diff -u pkgsrc/www/firefox/mozilla-common.mk:1.215 pkgsrc/www/firefox/mozilla-common.mk:1.216
--- pkgsrc/www/firefox/mozilla-common.mk:1.215 Wed Dec 22 16:17:00 2021
+++ pkgsrc/www/firefox/mozilla-common.mk Fri Dec 24 12:09:47 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mozilla-common.mk,v 1.215 2021/12/22 16:17:00 ryoon Exp $
+# $NetBSD: mozilla-common.mk,v 1.216 2021/12/24 12:09:47 tnn Exp $
#
# common Makefile fragment for mozilla packages based on gecko 2.0.
#
@@ -102,7 +102,13 @@ CONFIGURE_ARGS+= --with-system-webp
CONFIGURE_ARGS+= --disable-icf
CONFIGURE_ARGS+= --disable-updater
-#CONFIGURE_ARGS+= --with-libclang-path=${PREFIX}/lib
+.include "../../mk/compiler.mk"
+
+.if empty(PKGSRC_COMPILER:Mclang)
+# Set path to "clang for cbindgen" when target compiler is not clang.
+CONFIGURE_ARGS+= --with-clang-path=${PREFIX}/bin/clang
+.endif
+CONFIGURE_ARGS+= --with-libclang-path=${PREFIX}/lib
# RLBox WASM sandbox
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
@@ -112,6 +118,8 @@ BUILD_DEPENDS+= lld-[0-9]*:../../devel/
.include "../../lang/wasi-libcxx/buildlink3.mk"
.include "../../lang/wasi-compiler-rt/buildlink3.mk"
CONFIGURE_ARGS+= --with-wasi-sysroot=${PREFIX}/wasi
+CONFIGURE_ENV+= WASM_CC=${PREFIX}/bin/clang
+CONFIGURE_ENV+= WASM_CXX=${PREFIX}/bin/clang++
.else
CONFIGURE_ARGS+= --without-wasm-sandboxed-libraries
.endif
@@ -172,19 +180,6 @@ create-rm-wrapper:
${WRAPPER_DIR}/bin/rm
chmod +x ${WRAPPER_DIR}/bin/rm
-.PHONY: fix-clang-wrapper
-pre-configure: fix-clang-wrapper
-fix-clang-wrapper:
-.if empty(PKGSRC_COMPILER:M*clang*)
-# Firefox requires Clang during the build, even when building with GCC.
-# XXX: When using GCC, pkgsrc provides 'clang' wrappers that are actually gcc.
-# This breaks the build.
-# PR pkg/55647 https://gnats.netbsd.org/55647
- ${LN} -sf ${PREFIX}/bin/clang ${WRKDIR}/.cwrapper/bin/clang
- ${LN} -sf ${PREFIX}/bin/clang++ ${WRKDIR}/.cwrapper/bin/clang++
- ${LN} -sf ${PREFIX}/bin/clang-cpp ${WRKDIR}/.cwrapper/bin/clang-cpp
-.endif
-
# The configure test for __thread succeeds, but later we end up with:
# dist/bin/libxul.so: undefined reference to `__tls_get_addr'
CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no
Home |
Main Index |
Thread Index |
Old Index