From e9fa8c97dfeeb9c0e3694220fee8fcef1adf72cf Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 21 Aug 2023 11:29:29 -0400 Subject: [PATCH] build: add ldlibs for std::filesystem --- common.gypi | 1 + 1 file changed, 1 insertion(+) 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"', {