Merge "Added -pthread"

This commit is contained in:
Peter Johnson (294)
2016-01-22 13:44:47 -08:00
committed by Gerrit Code Review
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'
}
}
}