Skip to content

Commit e8a4568

Browse files
committed
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 5289f80 commit e8a4568

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common.gypi

Lines changed: 1 addition & 0 deletions
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)