Skip to content

Commit

Permalink
fix pkg-config cflags maybe?
Browse files Browse the repository at this point in the history
Signed-off-by: madomado <[email protected]>
  • Loading branch information
madonuko authored Jul 23, 2024
1 parent e6cf006 commit 87b1b28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions anda/devs/tracy/tracy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ This package contains the development files for the tracy package.


%build
export CXX="g++ -fPIE -I/usr/include/freetype2/ -I/usr/include/capstone/ $CXXFLAGS"
export LD="mold $LDFLAGS"
for lib in `pkg-config --list-all | sed -E 's/ .+$//'`; do pkg-config --cflags-only-I $lib >> cflags;done
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 CXX="g++ -fuse-ld=mold -fPIE $CXXFLAGS $cflags"
export LD="mold $LDFLAGS $lflags"
%meson
%meson_build
%make_build -C capture/build/unix release
Expand Down

0 comments on commit 87b1b28

Please sign in to comment.