tamatebako / libdwarfs

C++ library to access DwarFS images
2 stars 1 forks source link

Optimise the builds of external libraries #76

Open maxirmx opened 2 years ago

maxirmx commented 2 years ago

Depending on the environment (optionally) scripts build

configurations shall be revised to ensure that the minimal applicable build configuration is used

maxirmx commented 2 years ago

libarchive build can be minimised with

CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env CFLAGS=${CROSSFLAGS}
#                    ${LIBARCHIVE_SOURCE_DIR}/configure
#                      ${HOST_OPTION}
#                      --srcdir=${LIBARCHIVE_SOURCE_DIR}
#                      --prefix=${DEPS}
#                      --without-bz2lib
#                      --without-libb2
#                      --without-libiconv-prefix
#                      --without-xml2
#                      --without-expat
#                      --without-cng
#                      --disable-bsdtar
#                      --disable-bsdcat
#                      --disable-bsdcpio
#                      --enable-shared=no

however migrating from cmake to auto tools creates some issues with cross-compilation that needs to be researched