diff options
| author | Linux User <emmett@vmi2195005.contaboserver.net> | 2025-04-14 01:35:12 +0000 |
|---|---|---|
| committer | Linux User <emmett@vmi2195005.contaboserver.net> | 2025-04-14 01:35:12 +0000 |
| commit | 595101c9e63eae025157878b14577acb3fef0b3b (patch) | |
| tree | 9878022974c9d8b274c999d693e466b23cfb2fdd /repos/extra/firefox | |
| parent | 73d7a925b4ad5bb64b17506acdf1600a12d55d47 (diff) | |
| download | alicelinux-595101c9e63eae025157878b14577acb3fef0b3b.tar.gz alicelinux-595101c9e63eae025157878b14577acb3fef0b3b.zip | |
clang repos migrated to main
Diffstat (limited to 'repos/extra/firefox')
| -rw-r--r-- | repos/extra/firefox/.checksum | 1 | ||||
| -rw-r--r-- | repos/extra/firefox/abuild | 2 | ||||
| -rw-r--r-- | repos/extra/firefox/visibility.patch | 13 |
3 files changed, 16 insertions, 0 deletions
diff --git a/repos/extra/firefox/.checksum b/repos/extra/firefox/.checksum index 76c3a151..de279c20 100644 --- a/repos/extra/firefox/.checksum +++ b/repos/extra/firefox/.checksum @@ -1,2 +1,3 @@ 91817850d4e0a2f69ba24d6c2db47fe2886329a19175317b9010821d5597f33f firefox-137.0.source.tar.xz 3e4e722acd2ab2e38a16ec23b29296318d77cc54f034d4b21d91bde085e26bc0 fix-target-detection.patch +30889a96df16927cca69826f3ca94b9f751819c2fcae07001a7108847ff25cb6 visibility.patch diff --git a/repos/extra/firefox/abuild b/repos/extra/firefox/abuild index 3865a0f9..ac804c33 100644 --- a/repos/extra/firefox/abuild +++ b/repos/extra/firefox/abuild @@ -2,6 +2,7 @@ name=firefox version=137.0 release=1 source="https://ftp.mozilla.org/pub/${name}/releases/${version}/source/${name}-${version}.source.tar.xz + visibility.patch fix-target-detection.patch" build() { @@ -64,6 +65,7 @@ EOF export RUSTFLAGS="$RUSTFLAGS -Cdebuginfo=0" export MOZ_DEBUG_FLAGS=-g0 export MOZ_NOSPAM=1 + export CXXSTDLIB=c++ ./mach build ./mach install diff --git a/repos/extra/firefox/visibility.patch b/repos/extra/firefox/visibility.patch new file mode 100644 index 00000000..5084ae90 --- /dev/null +++ b/repos/extra/firefox/visibility.patch @@ -0,0 +1,13 @@ +--- a/build/moz.configure/toolchain.configure ++++ b/build/moz.configure/toolchain.configure +@@ -2186,7 +2186,7 @@ +-@depends(target, build_environment) ++@depends(target, c_compiler, build_environment) +-def visibility_flags(target, env): ++def visibility_flags(target, c_compiler, env): + if target.os != "WINNT": +- if target.kernel == "Darwin": ++ if target.kernel == "Darwin" or c_compiler.type == "clang": + return ("-fvisibility=hidden", "-fvisibility-inlines-hidden") + return ( + "-I%s/system_wrappers" % os.path.join(env.dist), |