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:
parent
1bd82a9884
commit
bdeaebd8e0
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue