diff --git a/common.gypi b/common.gypi index 2c061a7b058..a97e12ae38c 100644 --- a/common.gypi +++ b/common.gypi @@ -410,6 +410,9 @@ 'libraries': [ '-lelf' ], }], ['OS=="freebsd"', { + # Use this flag because on FreeBSD std::pairs copy constructor is non-trivial + # https://lists.freebsd.org/pipermail/freebsd-toolchain/2016-March/002094.html + 'cflags': [ '-D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1' ], 'ldflags': [ '-Wl,--export-dynamic', ],