From 51beec7ec6b04a3cbecfabdb0fa591aae0e99a50 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Thu, 17 Jun 2021 00:43:11 +0200 Subject: [PATCH] Small fix. --- build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.sh b/build.sh index da5ebc5..70b450b 100644 --- a/build.sh +++ b/build.sh @@ -89,12 +89,10 @@ rm -rf "${BROT_DIR}" && mkdir "${BROT_DIR}" tar -xvf "${pkg_brot}" --strip-components=1 -C "${BROT_DIR}" pushd "${BROT_DIR}" CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -D_WIN32_WINNT=0x0501 -I${LIBS_DIR}/include" LDFLAGS="-L${LIBS_DIR}/lib" make lib -for fname in enc dec common; do - cp -vf libbrotli.a "${LIBS_DIR}/lib/libbrotli${fname}.a" -done mkdir -p "${LIBS_DIR}/include/brotli" cp -vf c/include/brotli/*.h "${LIBS_DIR}/include/brotli" for fname in scripts/*.pc.in; do + cp -vf libbrotli.a "${LIBS_DIR}/lib/$(basename "${fname}" .pc.in).a" sed -e "s|@prefix@|${LIBS_DIR}|g" -e 's|@exec_prefix@|${prefix}|g' -e 's|@includedir@|${prefix}/include|g' -e 's|@libdir@|${prefix}/lib|g' -e 's|@PACKAGE_VERSION@|1.0.9|g' ${fname} > "${LIBS_DIR}/lib/pkgconfig/$(basename "${fname}" .in)" done popd