From 838d8abf63478bdd770c2d14fdb0215898a85bd6 Mon Sep 17 00:00:00 2001 From: Fredric Silberberg Date: Thu, 21 Jan 2016 19:45:23 -0500 Subject: [PATCH] Added -pthread Change-Id: Iea1553c9632fb270d56140a046cffa5258ce6d2d --- toolchains/arm.gradle | 8 ++++---- toolchains/linux.gradle | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/toolchains/arm.gradle b/toolchains/arm.gradle index db437fb086..529edf6e09 100644 --- a/toolchains/arm.gradle +++ b/toolchains/arm.gradle @@ -16,11 +16,11 @@ model { //TODO: When the compiler allows us to actually call deprecated functions from within // deprecated function, remove this line (this will cause calling deprecated functions // to be treated as a warning rather than an error). - args << '-Wno-error=deprecated-declarations' + args << '-Wno-error=deprecated-declarations' << '-pthread' args.remove('-m32') } linker.withArguments { args -> - args << '-rdynamic' + args << '-rdynamic' << '-pthread' args.remove('-m32') } staticLibArchiver.executable = compilerPrefix + staticLibArchiver.executable @@ -44,11 +44,11 @@ model { //TODO: When the compiler allows us to actually call deprecated functions from within // deprecated function, remove this line (this will cause calling deprecated functions // to be treated as a warning rather than an error). - args << '-Wno-error=deprecated-declarations' + args << '-Wno-error=deprecated-declarations' << '-pthread' args.remove('-m32') } linker.withArguments { args -> - args << '-rdynamic' + args << '-rdynamic' << '-pthread' args.remove('-m32') } staticLibArchiver.executable = compilerPrefix + 'ar' diff --git a/toolchains/linux.gradle b/toolchains/linux.gradle index 415b92199d..f13250950e 100644 --- a/toolchains/linux.gradle +++ b/toolchains/linux.gradle @@ -8,11 +8,11 @@ model { //TODO: When the compiler allows us to actually call deprecated functions from within // deprecated function, remove this line (this will cause calling deprecated functions // to be treated as a warning rather than an error). - args << '-Wno-error=deprecated-declarations' + args << '-Wno-error=deprecated-declarations' << '-pthread' args << '-m32' } linker.withArguments { args -> - args << '-rdynamic' + args << '-rdynamic' << '-pthread' args << '-m32' } } @@ -23,10 +23,10 @@ model { //TODO: When the compiler allows us to actually call deprecated functions from within // deprecated function, remove this line (this will cause calling deprecated functions // to be treated as a warning rather than an error). - args << '-Wno-error=deprecated-declarations' + args << '-Wno-error=deprecated-declarations' << '-pthread' } linker.withArguments { args -> - args << '-rdynamic' + args << '-rdynamic' << '-pthread' } } }