diff --git a/compile_qemu_nyx.sh b/compile_qemu_nyx.sh index 0dc40aa558..a3702b0b10 100755 --- a/compile_qemu_nyx.sh +++ b/compile_qemu_nyx.sh @@ -39,19 +39,14 @@ error() compile_libraries() { - echo "[!] Compiling capstone4..." - make -C $CAPSTONE_ROOT -j $(nproc) - - echo "[!] Compiling libxdc..." - LDFLAGS="-L$CAPSTONE_ROOT -L$LIBXDC_ROOT" CFLAGS="-I$CAPSTONE_ROOT/include/" make -C $LIBXDC_ROOT -j $(nproc) - case $1 in - "dynamic"|"debug") - echo "[!] Installing capstone4..." - sudo make -C $CAPSTONE_ROOT install - echo "[!] Installing libxdc..." - sudo make -C $LIBXDC_ROOT install - ;; + "debug_static"|"static"|"lto") + echo "[!] Compiling capstone4..." + make -C $CAPSTONE_ROOT -j $(nproc) + + echo "[!] Compiling libxdc..." + LDFLAGS="-L$CAPSTONE_ROOT -L$LIBXDC_ROOT" CFLAGS="-I$CAPSTONE_ROOT/include/" make -C $LIBXDC_ROOT -j $(nproc) + ;; esac } @@ -65,7 +60,6 @@ configure_qemu() export QEMU_CFLAGS="-I$CAPSTONE_ROOT/include/ -I$LIBXDC_ROOT/ $QEMU_CFLAGS" ;; *) - error ;; esac @@ -102,6 +96,14 @@ if [ "$#" -ne 1 ] ; then error fi +case $1 in + "dynamic"|"debug"|"debug_static"|"static"|"lto") + ;; + *) + error + ;; + esac + if [ -z "$LIBXDC_ROOT" -o -z "$CAPSTONE_ROOT" ]; then git submodule init git submodule update libxdc diff --git a/libxdc b/libxdc index df32642c98..78f0fb6394 160000 --- a/libxdc +++ b/libxdc @@ -1 +1 @@ -Subproject commit df32642c985864c187ad3db13be1dc8c3155d888 +Subproject commit 78f0fb6394ab297c78aa76bf671ebb0eae05ddc9