diff --git a/common.gypi b/common.gypi index 6b170a52c37725..9d648476541fcc 100644 --- a/common.gypi +++ b/common.gypi @@ -402,6 +402,7 @@ 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ], 'defines': [ '__STDC_FORMAT_MACROS' ], 'ldflags': [ '-rdynamic' ], + 'ldlibs': [ '-lstdc++fs' ], 'target_conditions': [ # The 1990s toolchain on SmartOS can't handle thin archives. ['_type=="static_library" and OS=="solaris"', {