Permalink
Browse files

Fix platform flags to also check for linux

Reviewed By: danzimm

Differential Revision: D6036995

fbshipit-source-id: 98d7f19eb80b72090b26252864a6bd41a3295462
  • Loading branch information...
mzlee authored and facebook-github-bot committed Oct 12, 2017
1 parent f9047cd commit 7997a2b74950f0d76d5b5942aa2450f2b9207bf0
Showing with 6 additions and 6 deletions.
  1. +6 −6 ReactAndroid/src/main/jni/third-party/glibc/BUCK
@@ -6,15 +6,15 @@ include_defs("//ReactAndroid/DEFS")
# libpthread is implicitly included in the android runtime so, when building
# on an android platform, we don't do anything.
deprecated_prebuilt_cxx_library(
prebuilt_cxx_library(
name = "pthread",
exported_platform_linker_flags = [
(
"android",
[],
),
(
"default",
"^(default|linux)",
["-lpthread"],
),
(
@@ -28,7 +28,7 @@ deprecated_prebuilt_cxx_library(
],
)
deprecated_prebuilt_cxx_library(
prebuilt_cxx_library(
name = "dl",
exported_linker_flags = [
"-ldl",
@@ -39,7 +39,7 @@ deprecated_prebuilt_cxx_library(
],
)
deprecated_prebuilt_cxx_library(
prebuilt_cxx_library(
name = "m",
exported_linker_flags = [
"-lm",
@@ -50,15 +50,15 @@ deprecated_prebuilt_cxx_library(
],
)
deprecated_prebuilt_cxx_library(
prebuilt_cxx_library(
name = "rt",
exported_platform_linker_flags = [
(
"android", # Empty, since `-lc` is implicit
[],
),
(
"default",
"^(default|linux)",
["-lrt"],
),
],

0 comments on commit 7997a2b

Please sign in to comment.