From 9ac2876fc7e9b94771945c5fe5f70c9506b81e35 Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 23 Jul 2024 23:33:56 +0800 Subject: [PATCH] fix PIE/PIC? Signed-off-by: madomado --- anda/devs/tracy/tracy.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/anda/devs/tracy/tracy.spec b/anda/devs/tracy/tracy.spec index f09ca3442b..6ab9726704 100644 --- a/anda/devs/tracy/tracy.spec +++ b/anda/devs/tracy/tracy.spec @@ -37,18 +37,18 @@ for lib in `pkg-config --list-all | sed -E 's/ .+$//'`; do pkg-config --libs $li 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 CXX="g++ -fuse-ld=mold $CXXFLAGS $cflags" export LD="mold $LDFLAGS $lflags" export CFLAGS="$CFLAGS -fuse-ld=mold" export CXXFLAGS="$CXXFLAGS -fuse-ld=mold" %meson %meson_build -%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 & +%make_build CFLAGS="$CFLAGS -fPIE" CXXFLAGS="$CXXFLAGS -fPIE" -C capture/build/unix release & +%make_build CFLAGS="$CFLAGS -fPIE" CXXFLAGS="$CXXFLAGS -fPIE" -C csvexport/build/unix release & +%make_build CFLAGS="$CFLAGS -fPIE" CXXFLAGS="$CXXFLAGS -fPIE" -C import-chrome/build/unix release & +%make_build CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" -C library/unix release & +%make_build CFLAGS="$CFLAGS -fPIE" CXXFLAGS="$CXXFLAGS -fPIE" -C profiler/build/unix release & +%make_build CFLAGS="$CFLAGS -fPIE" CXXFLAGS="$CXXFLAGS -fPIE" -C update/build/unix release & wait %install