From 7997a2b74950f0d76d5b5942aa2450f2b9207bf0 Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Thu, 12 Oct 2017 09:07:05 -0700 Subject: [PATCH] Fix platform flags to also check for linux Reviewed By: danzimm Differential Revision: D6036995 fbshipit-source-id: 98d7f19eb80b72090b26252864a6bd41a3295462 --- ReactAndroid/src/main/jni/third-party/glibc/BUCK | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ReactAndroid/src/main/jni/third-party/glibc/BUCK b/ReactAndroid/src/main/jni/third-party/glibc/BUCK index c1744771a..4355e013c 100644 --- a/ReactAndroid/src/main/jni/third-party/glibc/BUCK +++ b/ReactAndroid/src/main/jni/third-party/glibc/BUCK @@ -6,7 +6,7 @@ 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 = [ ( @@ -14,7 +14,7 @@ deprecated_prebuilt_cxx_library( [], ), ( - "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,7 +50,7 @@ deprecated_prebuilt_cxx_library( ], ) -deprecated_prebuilt_cxx_library( +prebuilt_cxx_library( name = "rt", exported_platform_linker_flags = [ ( @@ -58,7 +58,7 @@ deprecated_prebuilt_cxx_library( [], ), ( - "default", + "^(default|linux)", ["-lrt"], ), ],