From f1dbfefcca91426b39bab2f766d90caf34711bdb Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 15 Sep 2022 10:41:39 +0200 Subject: [PATCH] Create thin archive and convert it afterwards While this worked fine on rawhide, the MRI script is not accepted on f37. Apparently + is a special character and something we end up trying to use libc rather than libc++.a. Avoid this by creating a thin archive first and then only using the MRI script to convert it into a fat archive. Weird that there is apparently no native way to do this. --- libcxx.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libcxx.spec b/libcxx.spec index f2f5866..ce940cb 100644 --- a/libcxx.spec +++ b/libcxx.spec @@ -108,13 +108,16 @@ common_cmake_flags="\ LIBCXX_A=`find $PWD -name libc++.a` mkdir results-static pushd results-static +# Create thin archive +ar cqT tmp.a $LIBCXX_A %{_libdir}/libc++abi.a +# Convert into normal archive ar -M <