diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2018-06-19 13:34:37 -0400 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2018-07-06 15:54:24 -0400 |
commit | 46bf456123cfd5ac58cdcbf480d768099f806338 (patch) | |
tree | d4b4fbca8a4886a8fa3a41cb5829d03b08bc398a /SConstruct | |
parent | b0e11b8957a4479a6aee5487f35d3baa449dce53 (diff) | |
download | mongo-46bf456123cfd5ac58cdcbf480d768099f806338.tar.gz |
SERVER-35664 run android tests on version 24 images
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index d3bc0c4333d..4917d4c97ac 100644 --- a/SConstruct +++ b/SConstruct @@ -2581,8 +2581,13 @@ def doConfigure(myenv): # Explicitly enable GNU build id's if the linker supports it. AddToLINKFLAGSIfSupported(myenv, '-Wl,--build-id') - # Explicitly use the new gnu hash section if the linker offers it. - AddToLINKFLAGSIfSupported(myenv, '-Wl,--hash-style=gnu') + # Explicitly use the new gnu hash section if the linker offers + # it, except on android since older runtimes seem to not + # support it. For that platform, use 'both'. + if env.TargetOSIs('android'): + AddToLINKFLAGSIfSupported(myenv, '-Wl,--hash-style=both') + else: + AddToLINKFLAGSIfSupported(myenv, '-Wl,--hash-style=gnu') # Try to have the linker tell us about ODR violations. Don't # use it when using clang with libstdc++, as libstdc++ was |