Skip to content

Commit d131877

Browse files
devnexenBridgeAR
authored andcommitted
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.
1 parent 1033760 commit d131877

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common.gypi

+1
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@
333333
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
334334
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
335335
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
336+
'defines': [ '__STDC_FORMAT_MACROS' ],
336337
'ldflags': [ '-rdynamic' ],
337338
'target_conditions': [
338339
# The 1990s toolchain on SmartOS can't handle thin archives.

0 commit comments

Comments
 (0)