]> git.armaanb.net Git - asd-repo.git/commitdiff
ccache: copy build from wyverkiss
authorArmaan Bhojwani <me@armaanb.net>
Wed, 7 Jul 2021 22:45:32 +0000 (18:45 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Thu, 8 Jul 2021 18:03:06 +0000 (14:03 -0400)
ccache/build
ccache/version

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
index aead5414d52678b39da0f9daee25295f3e211c74..e47357bf8771c24387b18ac91b260f4dc6eecf89 100644 (file)
@@ -1 +1 @@
-4.3 1
+4.3 2