Skip to content
Permalink
Browse files

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.
  • Loading branch information
devnexen authored and BridgeAR committed Oct 27, 2019
1 parent 1033760 commit d131877398308f28e800e925a6f2f61474fdb096
Showing with 1 addition and 0 deletions.
  1. +1 −0 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.

0 comments on commit d131877

Please sign in to comment.
You can’t perform that action at this time.