upgpkg: zydis 4.0.0.rc.1-2; fix linking issues

This commit is contained in:
George Rawlinson 2022-10-10 13:08:39 +13:00
parent 0f539617d9
commit 817e7f70eb
Signed by: grawlinson
GPG Key ID: E0959FEA8B550539
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
pkgname=zydis
pkgver=4.0.0.rc.1
pkgrel=1
pkgrel=2
pkgdesc='Fast and lightweight x86/x86-64 disassembler and code generation library'
arch=('x86_64')
url='https://zydis.re'
@ -25,12 +25,14 @@ build() {
# https://archlinux.org/todo/lto-fat-objects/
export CFLAGS+=" -ffat-lto-objects"
# https://github.com/zyantific/zydis#-fpic-for-shared-library-builds
cmake \
-S "$pkgname" \
-B build \
-Wno-dev \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DZYDIS_BUILD_SHARED_LIB=ON \
-DZYAN_SYSTEM_ZYCORE=ON \
-DZYDIS_BUILD_MAN=ON