1
1
diff --git a/BUILD.gn b/BUILD.gn
2
- index 40bd3062436..159239e17e2 100644
2
+ index 4d88fd67d86..5898483f0e9 100644
3
3
--- a/BUILD.gn
4
4
+++ b/BUILD.gn
5
- @@ -95 ,6 +95 ,10 @@ group("create_sdk") {
5
+ @@ -99 ,6 +99 ,10 @@ group("create_sdk") {
6
6
public_deps = [ "sdk:create_sdk" ]
7
7
}
8
8
@@ -13,11 +13,26 @@ index 40bd3062436..159239e17e2 100644
13
13
group("create_platform_sdk") {
14
14
public_deps = [ "sdk:create_platform_sdk" ]
15
15
}
16
+ diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
17
+ index f6c2c6625dc..f3986381da4 100644
18
+ --- a/build/config/compiler/BUILD.gn
19
+ +++ b/build/config/compiler/BUILD.gn
20
+ @@ -250,8 +250,8 @@ config("compiler") {
21
+ }
22
+
23
+ if (is_android || is_linux || is_mac || is_fuchsia) {
24
+ - cflags += [ "-fPIE" ]
25
+ - ldflags += [ "-fPIE" ]
26
+ + cflags += [ "-fPIC" ]
27
+ + ldflags += [ "-fPIC" ]
28
+ }
29
+
30
+ # Linux-specific compiler flags setup.
16
31
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn
17
- index 2877fb33775..e37f18bd2f1 100644
32
+ index e757b71d483..aa10a453907 100644
18
33
--- a/runtime/bin/BUILD.gn
19
34
+++ b/runtime/bin/BUILD.gn
20
- @@ -1107 ,3 +1107 ,49 @@ if (defined(is_linux) && is_linux && defined(is_asan) && is_asan &&
35
+ @@ -1110 ,3 +1110 ,49 @@ if (defined(is_linux) && is_linux && defined(is_asan) && is_asan &&
21
36
}
22
37
}
23
38
}
0 commit comments