Skip to content

Commit

Permalink
build: fixes build for some os versions
Browse files Browse the repository at this point in the history
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 Jan 3, 2020
1 parent 1033760 commit d131877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d131877

Please sign in to comment.