diff --git a/compile_qemu_nyx.sh b/compile_qemu_nyx.sh index 2d7ec6c466..8b236ec2bf 100755 --- a/compile_qemu_nyx.sh +++ b/compile_qemu_nyx.sh @@ -59,6 +59,16 @@ configure_qemu() { QEMU_CONFIGURE="./configure --target-list=x86_64-softmmu --disable-gtk --disable-docs --enable-gtk --disable-werror --disable-capstone --disable-libssh --disable-tools" + case $1 in + "debug_static"|"static"|"lto") + export LIBS="-L$PWD/capstone_v4/ -L$PWD/libxdc/ $LIBS" + export QEMU_CFLAGS="-I$PWD/capstone_v4/include/ -I$PWD/libxdc/ $QEMU_CFLAGS" + ;; + *) + error + ;; + esac + case $1 in "dynamic") $QEMU_CONFIGURE --enable-nyx diff --git a/configure b/configure index b753ee9c64..af144b6690 100755 --- a/configure +++ b/configure @@ -6105,8 +6105,7 @@ if test "$nyx" = "yes" ; then CFLAGS="-DNESTED_PATCH -Wno-error=maybe-uninitialized -DQEMU_NYX -g -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $QEMU_CFLAGS" if test "$nyx_static" = "yes" ; then - LIBS="-L$PWD/capstone_v4/ -l:libcapstone.a -L$PWD/libxdc/ -l:libxdc.a -I$PWD/capstone_v4/include/ -I$PWD/libxdc/ $LIBS" - QEMU_INCLUDES=" -I$PWD/capstone_v4/include/ -I$PWD/libxdc/ $QEMU_INCLUDES" + LIBS="-l:libcapstone.a -l:libxdc.a $LIBS" else LIBS="-lcapstone -lxdc $LIBS" fi