Skip to content

Commit

Permalink
Fix platform flags to also check for linux
Browse files Browse the repository at this point in the history
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 7997a2b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ReactAndroid/src/main/jni/third-party/glibc/BUCK
Expand Up @@ -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"],
),
(
Expand All @@ -28,7 +28,7 @@ deprecated_prebuilt_cxx_library(
],
)

deprecated_prebuilt_cxx_library(
prebuilt_cxx_library(
name = "dl",
exported_linker_flags = [
"-ldl",
Expand All @@ -39,7 +39,7 @@ deprecated_prebuilt_cxx_library(
],
)

deprecated_prebuilt_cxx_library(
prebuilt_cxx_library(
name = "m",
exported_linker_flags = [
"-lm",
Expand All @@ -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"],
),
],
Expand Down

0 comments on commit 7997a2b

Please sign in to comment.