Skip to content

Commit

Permalink
Statically link stdc++
Browse files Browse the repository at this point in the history
So we get better compatibility with older OSes
Thanks to @ysbaddaden in #4647
  • Loading branch information
matiasgarciaisaia committed Jul 3, 2017
1 parent 3c3d3e2 commit 65f33b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm/lib_llvm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end
{% end %}

{% begin %}
@[Link("stdc++")]
@[Link("stdc++", ldflags: "-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic")]
@[Link(ldflags: "`{{LibLLVM::LLVM_CONFIG.id}} --libs --system-libs --ldflags 2> /dev/null`")]
lib LibLLVM
VERSION = {{`#{LibLLVM::LLVM_CONFIG} --version`.chomp.stringify}}
Expand Down

0 comments on commit 65f33b2

Please sign in to comment.