mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-19 11:21:54 +00:00
17 lines
313 B
Bash
Executable File
17 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cxx_libs="-lc++"
|
|
c_libs="-lc -lgcc_s"
|
|
pthread_libs="-lpthread $c_libs"
|
|
|
|
libs="$cxx_libs $c_libs"
|
|
|
|
for i; do
|
|
if test x"$i" = x"-pthread"; then
|
|
libs="$libs $pthread_libs"
|
|
break
|
|
fi
|
|
done
|
|
|
|
gcc -std=c++0x -nodefaultlibs $libs -isystem/usr/lib/llvm-@LLVM_VERSION@/include/c++/v1/ "$@"
|