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 committed Dec 26, 2019
1 parent 5289f80 commit 18de9ba
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

1 comment on commit 18de9ba

@targos
Copy link
Member

@targos targos commented on 18de9ba Jan 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR-URL: #30141

Please sign in to comment.