Skip to content

Commit 61e7293

Browse files
authored
Merge pull request #11 from secretagentmoof/main
add support for building on cygwin; note what lt_cv_sys_max_cmd_len i…
2 parents 0b05aea + 70fad31 commit 61e7293

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/001-binutils.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ TARGET_ALIAS="dvp"
2525
TARG_XTRA_OPTS=""
2626
OSVER=$(uname)
2727

28+
# setting lt_cv_sys_max_cmd_len works around ancient libtool bugs
2829
if [ "${OSVER:0:10}" == MINGW64_NT ]; then
2930
export lt_cv_sys_max_cmd_len=8000
3031
export CC=x86_64-w64-mingw32-gcc
@@ -35,6 +36,9 @@ elif [ "${OSVER:0:10}" == MINGW32_NT ]; then
3536
export CC=i686-w64-mingw32-gcc
3637
TARG_XTRA_OPTS="--host=i686-w64-mingw32"
3738
CFLAGS="$CFLAGS -DHAVE_DECL_ASPRINTF -DHAVE_DECL_VASPRINTF"
39+
elif [ "${OSVER:0:9}" == "CYGWIN_NT" ]; then
40+
export lt_cv_sys_max_cmd_len=8000
41+
TARG_XTRA_OPTS="--host=x86_64-pc-cygwin"
3842
fi
3943

4044
## Determine the maximum number of processes that Make can work with.

0 commit comments

Comments
 (0)