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' } } }