]> git.armaanb.net Git - asd-repo.git/blobdiff - ccache/build
ccache: copy build from wyverkiss
[asd-repo.git] / ccache / build
index fdefd5dad4c39bce460d906a6671c8c2c35a5ca7..638ebef026c0e17e6e6e699eddb0cd5c6e1ec489 100755 (executable)
@@ -3,6 +3,7 @@
 export DESTDIR="$1"
 export CFLAGS="$CFLAGS -static"
 export CXXFLAGS="$CXXFLAGS -static"
+export LDFLAGS="$LDFLAGS -lc++ -lc++abi -lunwind -static"
 
 cmake -B build \
     -DCMAKE_INSTALL_PREFIX=/usr \
@@ -14,13 +15,13 @@ cmake --build   build
 cmake --install build
 
 mkdir -p "$1/usr/lib/ccache/bin"
-host=$(cc -dumpmachine)
 
 for link in \
-    cc  "$host-cc"  \
-    cpp "$host-cpp" \
-    c++ "$host-c++" \
-    clang clang++
+    cc      \
+    clang   \
+    clang++ \
+    cpp     \
+    c++
 do
     ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
 done