diff options
author | David Carlier <devnexen@gmail.com> | 2019-10-27 09:17:54 +0300 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2019-12-26 22:48:12 +0300 |
commit | 18de9ba872c8062c47fa5ba85bf47a63e256c040 (patch) | |
tree | cbf1b02f7239a8c4efe19eb631093fec57ea4bc9 /common.gypi | |
parent | 5289f80eadafcc508b24d5817f0ec416eccf8404 (diff) |
build: fixes build for some os versions
For format macros, the __STDC_FORMAT_MACROS flag needs to be
passed, also passing the librt linker flag.
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi index 758d6eba189..2ad7d5e9ed4 100644 --- a/common.gypi +++ b/common.gypi @@ -333,6 +333,7 @@ [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', { 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ], 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ], + 'defines': [ '__STDC_FORMAT_MACROS' ], 'ldflags': [ '-rdynamic' ], 'target_conditions': [ # The 1990s toolchain on SmartOS can't handle thin archives. |