aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_swiftshader_BUILD.gn
blob: 23339fe1c4b5306d935e0db5a59f23847c125ef1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- third_party/swiftshader/BUILD.gn.orig	2021-04-14 18:43:08 UTC
+++ third_party/swiftshader/BUILD.gn
@@ -153,9 +153,11 @@ config("swiftshader_config") {
       ldflags = [ "-Wl,--gc-sections" ]
 
       if (current_cpu == "mipsel") {
-        ldflags += [
-          "-Wl,--hash-style=sysv",
-        ]
+        if (!is_bsd) {
+          ldflags += [
+            "-Wl,--hash-style=sysv",
+          ]
+        }
         if (mips_arch_variant == "r1") {
           ldflags += [
             "-mips32",
@@ -167,11 +169,8 @@ config("swiftshader_config") {
         }
       } else if (current_cpu == "mips64el") {
         ldflags += [
-          "-Wl,--hash-style=sysv",
           "-mips64r2",
         ]
-      } else {
-        ldflags += [ "-Wl,--hash-style=both" ]
       }
 
       # A bug in the gold linker prevents using ICF on 32-bit (crbug.com/729532)