commit | 3e7d2ac0b066697fd8a8aecef3317870e29d5606 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Feb 10 19:39:28 2015 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Feb 10 21:30:29 2015 -0800 |
tree | d82fde6b3544bdd8f04d006834676b114a4a39f1 | |
parent | 746338985a6d493f57f40b01b942a1d0613dc38e [diff] [blame] |
build: Explicitly define _GLIBCXX_USE_NANOSLEEP if gcc < 4.8 is used Change-Id: I2f216ba8c602d1a81433a566318a49f17728a8dd Refs: #2499
diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py index 95d0d8a..759fcc8 100644 --- a/.waf-tools/default-compiler-flags.py +++ b/.waf-tools/default-compiler-flags.py
@@ -124,6 +124,8 @@ flags['CXXFLAGS'] += ['-std=c++0x'] else: flags['CXXFLAGS'] += ['-std=c++11'] + if version < (4, 8, 0): + flags['DEFINES'] += ['_GLIBCXX_USE_NANOSLEEP'] # Bug #2499 return flags def getDebugFlags(self, conf):