aboutsummaryrefslogtreecommitdiffstats
path: root/community/chromium/chromium-use-alpine-target.patch
blob: 467bf46b4113c2bd95159e99e1d21a4a7f74128e (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- build/config/compiler/BUILD.gn.orig
+++ build/config/compiler/BUILD.gn
@@ -709,8 +709,8 @@
       }
     } else if (current_cpu == "arm") {
       if (is_clang && !is_android && !is_nacl) {
-        cflags += [ "--target=arm-linux-gnueabihf" ]
-        ldflags += [ "--target=arm-linux-gnueabihf" ]
+        cflags += [ "--target=armv6-alpine-linux-musleabihf" ]
+        ldflags += [ "--target=armv6-alpine-linux-musleabihf" ]
       }
       if (!is_nacl) {
         cflags += [
@@ -723,8 +723,8 @@
       }
     } else if (current_cpu == "arm64") {
       if (is_clang && !is_android && !is_nacl && !is_fuchsia) {
-        cflags += [ "--target=aarch64-linux-gnu" ]
-        ldflags += [ "--target=aarch64-linux-gnu" ]
+        cflags += [ "--target=aarch64-alpine-linux-musl" ]
+        ldflags += [ "--target=aarch64-alpine-linux-musl" ]
       }
     } else if (current_cpu == "mipsel" && !is_nacl) {
       if (custom_toolchain == "") {
@@ -733,8 +733,8 @@
             cflags += [ "--target=mipsel-linux-android" ]
             ldflags += [ "--target=mipsel-linux-android" ]
           } else {
-            cflags += [ "--target=mipsel-linux-gnu" ]
-            ldflags += [ "--target=mipsel-linux-gnu" ]
+            cflags += [ "--target=mipsel-alpine-linux-musl" ]
+            ldflags += [ "--target=mipsel-alpine-linux-musl" ]
           }
         } else {
           cflags += [ "-EL" ]
@@ -861,8 +861,8 @@
             cflags += [ "--target=mips64el-linux-android" ]
             ldflags += [ "--target=mips64el-linux-android" ]
           } else {
-            cflags += [ "--target=mips64el-linux-gnuabi64" ]
-            ldflags += [ "--target=mips64el-linux-gnuabi64" ]
+            cflags += [ "--target=mips64el-alpine-linux-musl" ]
+            ldflags += [ "--target=mips64el-alpine-linux-musl" ]
           }
         } else {
           cflags += [
@@ -919,8 +919,8 @@
     } else if (current_cpu == "mips64") {
       if (custom_toolchain == "") {
         if (is_clang) {
-          cflags += [ "--target=mips64-linux-gnuabi64" ]
-          ldflags += [ "--target=mips64-linux-gnuabi64" ]
+          cflags += [ "--target=mips64-alpine-linux-musl" ]
+          ldflags += [ "--target=mips64-alpine-linux-musl" ]
         } else {
           cflags += [
             "-EB",