Added -pthread

Change-Id: Iea1553c9632fb270d56140a046cffa5258ce6d2d
This commit is contained in:
Fredric Silberberg
2016-01-21 19:45:23 -05:00
parent c90a8c586f
commit 838d8abf63
2 changed files with 8 additions and 8 deletions

View File

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

View File

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