upgpkg: zydis 4.0.0.rc.1-2; fix linking issues
This commit is contained in:
parent
0f539617d9
commit
817e7f70eb
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
pkgname=zydis
|
pkgname=zydis
|
||||||
pkgver=4.0.0.rc.1
|
pkgver=4.0.0.rc.1
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc='Fast and lightweight x86/x86-64 disassembler and code generation library'
|
pkgdesc='Fast and lightweight x86/x86-64 disassembler and code generation library'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://zydis.re'
|
url='https://zydis.re'
|
||||||
|
@ -25,12 +25,14 @@ build() {
|
||||||
# https://archlinux.org/todo/lto-fat-objects/
|
# https://archlinux.org/todo/lto-fat-objects/
|
||||||
export CFLAGS+=" -ffat-lto-objects"
|
export CFLAGS+=" -ffat-lto-objects"
|
||||||
|
|
||||||
|
# https://github.com/zyantific/zydis#-fpic-for-shared-library-builds
|
||||||
cmake \
|
cmake \
|
||||||
-S "$pkgname" \
|
-S "$pkgname" \
|
||||||
-B build \
|
-B build \
|
||||||
-Wno-dev \
|
-Wno-dev \
|
||||||
-DCMAKE_BUILD_TYPE='None' \
|
-DCMAKE_BUILD_TYPE='None' \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
-DZYDIS_BUILD_SHARED_LIB=ON \
|
-DZYDIS_BUILD_SHARED_LIB=ON \
|
||||||
-DZYAN_SYSTEM_ZYCORE=ON \
|
-DZYAN_SYSTEM_ZYCORE=ON \
|
||||||
-DZYDIS_BUILD_MAN=ON
|
-DZYDIS_BUILD_MAN=ON
|
||||||
|
|
Loading…
Reference in a new issue