Skip to content

Commit

Permalink
--default-library=static with 2 dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Mar 25, 2024
1 parent e9a78a2 commit ad64a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ wget -O appstream.tar.gz https://github.com/ximion/appstream/archive/v1.0.2.tar.
tar xf appstream.tar.gz
cd appstream-*/
# -no-pie is required to statically link to libc
CFLAGS=-no-pie LDFLAGS=-static meson setup build --buildtype=release --prefix="$(pwd)/prefix" --strip -Db_lto=true -Db_ndebug=if-release -Dstemming=false -Dgir=false -Dapidocs=false -Dinstall-docs=false -Dsystemd=false -default-library=static
CFLAGS=-no-pie LDFLAGS=-static meson setup build --buildtype=release --default-library=static --prefix="$(pwd)/prefix" --strip -Db_lto=true -Db_ndebug=if-release -Dstemming=false -Dgir=false -Dapidocs=false -Dinstall-docs=false -Dsystemd=false
# Install in a staging enviroment
meson install -C build
file prefix/bin/appstreamcli
Expand Down

0 comments on commit ad64a71

Please sign in to comment.