From 0053eadd37feac9e16a2acd1741f5ca0abeec8c0 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 22 May 2024 01:42:19 +0200 Subject: [PATCH] try 1 cmake --- osslsigncode.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/osslsigncode.sh b/osslsigncode.sh index 32102146e..b504aeaef 100755 --- a/osslsigncode.sh +++ b/osslsigncode.sh @@ -12,9 +12,11 @@ _VER="$1" ( cd "${_NAM}" || exit 0 - gcc -O3 \ - osslsigncode.c helpers.c utf.c msi.c pe.c cab.c cat.c appx.c script.c \ - -o ../osslsigncode-local \ - -DHAVE_SYS_MMAN_H \ - -lcrypto -lz + cmake -B "${_BLDDIR}" + + make --directory="${_BLDDIR}" --jobs="${_JOBS}" install "DESTDIR=$(pwd)/${_PKGDIR}" + + cp -f -p "${_PP}"/bin/osslsigncode ../osslsigncode-local + + ../osslsigncode-local --version )