Skip to content
Snippets Groups Projects
Verified Commit c61e25db authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Build xz statically and disable executables

parent 137cf057
No related branches found
No related tags found
No related merge requests found
...@@ -12,14 +12,23 @@ function recipe_update { ...@@ -12,14 +12,23 @@ function recipe_update {
} }
function recipe_build { function recipe_build {
# Workaround of export CFLAGS="-static"
# xzdec: hidden symbol `main' in xzdec-xzdec.o is referenced by DSO
export CFLAGS="-fvisibility=default"
./autogen.sh ./autogen.sh
chmod +w build-aux/config.sub chmod +w build-aux/config.sub
wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub wget -O build-aux/config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
./configure --build=${BUILD} --host=${HOST} --prefix=/ --enable-threads=no ./configure \
--build=${BUILD} \
--host=${HOST} \
--prefix=/ \
--disable-lzmadec \
--disable-lzmainfo \
--disable-xz \
--disable-xzdec \
--enable-shared=no \
--enable-static=yes \
--enable-threads=no \
--with-pic=no
make -j"$(nproc)" make -j"$(nproc)"
skip=1 skip=1
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment