Skip to content

Commit 4cd459c

Browse files
devnexentargos
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 5db6758 commit 4cd459c

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
@@ -361,6 +361,7 @@
361361
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
362362
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
363363
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
364+
'defines': [ '__STDC_FORMAT_MACROS' ],
364365
'ldflags': [ '-rdynamic' ],
365366
'target_conditions': [
366367
# The 1990s toolchain on SmartOS can't handle thin archives.

0 commit comments

Comments
 (0)