I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit a9438245 authored by idk's avatar idk
Browse files

set apart windows flags including JAVA_HOME in case the path contains a space

parent 6856969d
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ if [ -z "$BITS" ]; then ...@@ -40,7 +40,7 @@ if [ -z "$BITS" ]; then
elif test "${UNAME#*aarch64}" != "$UNAME"; then elif test "${UNAME#*aarch64}" != "$UNAME"; then
BITS=64 BITS=64
else else
echo "Unable to detect default setting for BITS variable" echo "Unable to detect default setting for BITS variable"
exit 1 exit 1
fi fi
...@@ -102,7 +102,9 @@ case "$TARGET" in ...@@ -102,7 +102,9 @@ case "$TARGET" in
MINGW*|CYGWIN*|windows*) MINGW*|CYGWIN*|windows*)
[ -z "$JAVA_HOME" ] && JAVA_HOME="/c/software/j2sdk1.4.2_05" [ -z "$JAVA_HOME" ] && JAVA_HOME="/c/software/j2sdk1.4.2_05"
CFLAGS="${CFLAGS} -Wall" CFLAGS="${CFLAGS} -Wall"
INCLUDES="-I. -Iinclude -I\"${JAVA_HOME}/include/\" -I\"${JAVA_HOME}/include/$HOST/\"" INCLUDES="-I. -Iinclude"
WINDOWS_INCLUDES=-I"${JAVA_HOME}/include/"
WINDOWS_INCLUDES_HOST=-I"${JAVA_HOME}/include/$HOST/"
LDFLAGS="${LDFLAGS} -shared -static -static-libgcc -Wl,--kill-at" LDFLAGS="${LDFLAGS} -shared -static -static-libgcc -Wl,--kill-at"
LIBFILE="lib/freenet/support/CPUInformation/jcpuid-${ARCH}-windows.dll";; LIBFILE="lib/freenet/support/CPUInformation/jcpuid-${ARCH}-windows.dll";;
Darwin*) Darwin*)
...@@ -155,6 +157,6 @@ echo "INCLUDES:$INCLUDES" ...@@ -155,6 +157,6 @@ echo "INCLUDES:$INCLUDES"
echo "Compiling C code..." echo "Compiling C code..."
rm -f ${LIBFILE} rm -f ${LIBFILE}
"${CC_PREFIX}""${CC}" ${CFLAGS} ${LDFLAGS} ${INCLUDES} src/*.c -o "${LIBFILE}" || (echo "Failed to compile ${LIBFILE}"; exit 1) "${CC_PREFIX}""${CC}" ${CFLAGS} ${LDFLAGS} ${INCLUDES} "${WINDOWS_INCLUDES}" "${WINDOWS_INCLUDES_HOST}" src/*.c -o "${LIBFILE}" || (echo "Failed to compile ${LIBFILE}"; exit 1)
"${CC_PREFIX}"strip "${LIBFILE}" || (echo "Failed to strip ${LIBFILE}" ; exit 1) "${CC_PREFIX}"strip "${LIBFILE}" || (echo "Failed to strip ${LIBFILE}" ; exit 1)
echo Built "$(dirname "$0")"/"${LIBFILE}" echo Built "$(dirname "$0")"/"${LIBFILE}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment