Files
r2ghidra/preconfigure
Adam Satko 2cad988f03 Make ghidra-native a subproject
* Adds zlib attempting to fix Windows builds
2025-06-23 12:00:16 +02:00

18 lines
364 B
Bash
Executable File

#!/bin/sh
git submodule update --init
MAKE=make
./configure
gmake --version > /dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
export NEED_ZLIB=1
pkg-config --cflags zlib > /dev/null 2>&1
if [ $? = 0 ]; then
NEED_ZLIB=0
else
echo "Warning: Cannot find system wide zlib"
fi
echo "[*] Checking subprojects... "
${MAKE} -C subprojects # > /dev/null
# ${MAKE} ghidra-native