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

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

don't attempt to pass windows flags to cc when building jbigi, jcpuid on non-Windows platforms

parent c0891c4a
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,13 @@ echo "INCLUDES:$INCLUDES"
echo "Compiling C code..."
rm -f ${LIBFILE}
"${CC_PREFIX}""${CC}" ${CFLAGS} ${LDFLAGS} ${INCLUDES} "${WINDOWS_INCLUDES}" "${WINDOWS_INCLUDES_HOST}" src/*.c -o "${LIBFILE}" || (echo "Failed to compile ${LIBFILE}"; exit 1)
case "$TARGET" in
MINGW*|CYGWIN*|windows*)
"${CC_PREFIX}""${CC}" ${CFLAGS} ${LDFLAGS} ${INCLUDES} "${WINDOWS_INCLUDES}" "${WINDOWS_INCLUDES_HOST}" src/*.c -o "${LIBFILE}" || (echo "Failed to compile ${LIBFILE}"; exit 1)
;;
*)
"${CC_PREFIX}""${CC}" ${CFLAGS} ${LDFLAGS} ${INCLUDES} src/*.c -o "${LIBFILE}" || (echo "Failed to compile ${LIBFILE}"; exit 1)
;;
esac
"${CC_PREFIX}"strip "${LIBFILE}" || (echo "Failed to strip ${LIBFILE}" ; exit 1)
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