Fix Linux standalone compilation.
simple_texture_2d, hello_triangle, stencil_operations, simple_texture_cubemap
fail to compile after https://chromium-review.googlesource.com/342050.
BUG=angleproject:1319
TEST=ninja -C out/Release all
Change-Id: Ib70008036f8688b737f3f40b5224437a7afdea19
Reviewed-on: https://chromium-review.googlesource.com/346121
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 1df8125..f67bccf 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -117,7 +117,9 @@
"//build/config/compiler:no_chromium_code",
]
- public_deps = [ ":commit_id" ]
+ public_deps = [
+ ":commit_id",
+ ]
}
static_library("translator_lib") {
@@ -290,9 +292,7 @@
}
if (use_x11) {
sources += rebase_path(gles_gypi.libangle_gl_glx_sources, ".", "src")
- deps += [
- "src/third_party/libXNVCtrl:libXNVCtrl"
- ]
+ deps += [ "src/third_party/libXNVCtrl:libXNVCtrl" ]
libs += [
"X11",
"Xi",
@@ -398,7 +398,10 @@
if (is_linux) {
sources += rebase_path(util_gypi.util_linux_sources, ".", "util")
- libs = [ "rt" ]
+ libs = [
+ "rt",
+ "dl",
+ ]
}
if (is_mac) {
diff --git a/util/util.gyp b/util/util.gyp
index 88f8d7b..03a5b4e 100644
--- a/util/util.gyp
+++ b/util/util.gyp
@@ -149,6 +149,13 @@
[
'<@(util_linux_sources)',
],
+ 'link_settings':
+ {
+ 'libraries':
+ [
+ '-ldl',
+ ],
+ },
}],
['use_x11==1',
{