From c1986b75d2eb882a0995e4467b600040a334c760 Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 23 Jul 2024 23:27:01 +0800 Subject: [PATCH] Update tracy.spec Signed-off-by: madomado --- anda/devs/tracy/tracy.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/anda/devs/tracy/tracy.spec b/anda/devs/tracy/tracy.spec index 960bf61a7a..f09ca3442b 100644 --- a/anda/devs/tracy/tracy.spec +++ b/anda/devs/tracy/tracy.spec @@ -8,9 +8,10 @@ Summary: A real time, nanosecond resolution, remote telemetry, hybrid frame and License: BSD-3-Clause URL: https://github.com/wolfpld/tracy Source0: https://github.com/wolfpld/tracy/archive/refs/tags/v%version.tar.gz -BuildRequires: libxkbcommon dbus-devel libglvnd glfw-devel freetype-devel pkgconfig(capstone) pkgconfig(libunwind) pkgconfig(libdebuginfod) pkgconfig(tbb) +BuildRequires: dbus-devel libglvnd glfw-devel freetype-devel pkgconfig(capstone) pkgconfig(libunwind) pkgconfig(libdebuginfod) pkgconfig(tbb) BuildRequires: wayland-devel BuildRequires: capstone-devel +BuildRequires: libxkbcommon-devel BuildRequires: cmake meson gcc gcc-c++ mold Patch: https://github.com/wolfpld/tracy/commit/1a971d867d6fa5bf6dc57d705dcbbc6020031e7a.patch @@ -35,17 +36,20 @@ for lib in `pkg-config --list-all | sed -E 's/ .+$//'`; do pkg-config --cflags-o for lib in `pkg-config --list-all | sed -E 's/ .+$//'`; do pkg-config --libs $lib >> lflags;done cflags=$(cat cflags | tr -s '\n' | tr '\n' ' ') lflags=$(cat lflags | tr -s '\n' | tr '\n' ' ') +export CC="gcc -fuse-ld=mold" export CXX="g++ -fuse-ld=mold -fPIE $CXXFLAGS $cflags" export LD="mold $LDFLAGS $lflags" +export CFLAGS="$CFLAGS -fuse-ld=mold" +export CXXFLAGS="$CXXFLAGS -fuse-ld=mold" %meson %meson_build -%make_build -C capture/build/unix release -%make_build -C csvexport/build/unix release -%make_build -C import-chrome/build/unix release -%make_build -C library/unix release -%make_build -C profiler/build/unix release -%make_build -C update/build/unix release - +%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C capture/build/unix release & +%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C csvexport/build/unix release & +%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C import-chrome/build/unix release & +%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C library/unix release & +%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C profiler/build/unix release & +%make_build CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" -C update/build/unix release & +wait %install %meson_install