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 targos committed Jan 14, 2020
1 parent 5db6758 commit 4cd459c
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 @@ -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 4cd459c

Please sign in to comment.