From e8a45686c7512211f96c0fe8153b5253cf5923a6 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 27 Oct 2019 06:17:54 +0000 Subject: [PATCH] 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. --- common.gypi | 1 + 1 file changed, 1 insertion(+) diff --git a/common.gypi b/common.gypi index 758d6eba189736..f0357a2e3e35d6 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.