1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00

add -lstdc++ for clang for non-Darwin

Tested with clang 10, 11, and 12 with ruby 3.1.0dev (master 0b999bef29).
This allows tests to run without "_ZTVN10__cxxabiv117__class_type_infoE"
errors on Ubuntu 20.04.3 Linux x86_64
This commit is contained in:
Sam Saffron 2021-12-30 11:41:06 +11:00
parent 1bd82a9884
commit bdeaebd8e0
No known key found for this signature in database
GPG key ID: B9606168D2FFD9F5

View file

@ -21,7 +21,11 @@ $CXXFLAGS += " -fms-extensions"
$CXXFLAGS += " -Wno-reserved-user-defined-literal" if IS_DARWIN
$LDFLAGS.insert(0, " -stdlib=libc++ ") if IS_DARWIN
if IS_DARWIN
$LDFLAGS.insert(0, " -stdlib=libc++ ")
else
$LDFLAGS.insert(0, " -lstdc++ ")
end
# check for missing symbols at link time
# $LDFLAGS += " -Wl,--no-undefined " unless IS_DARWIN