FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: fixes build for some os versions · nodejs/node@b1b7f67 · GitHub

/ node Public

Commit b1b7f67

Browse files
authored andcommitted
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.
1 parent fd0565c commit b1b7f67

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎common.gypi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@
361361
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
362362
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
363363
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
364+
'defines': [ '__STDC_FORMAT_MACROS' ],
364365
'ldflags': [ '-rdynamic' ],
365366
'target_conditions': [
366367
# The 1990s toolchain on SmartOS can't handle thin archives.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL