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 BethGriggs committed Feb 6, 2020
1 parent fd0565c commit b1b7f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common.gypi
Expand Up @@ -361,6 +361,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 b1b7f67

Please sign in to comment.