Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for building on cygwin; note what lt_cv_sys_max_cmd_len i… #11

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/001-binutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ TARGET_ALIAS="dvp"
TARG_XTRA_OPTS=""
OSVER=$(uname)

# setting lt_cv_sys_max_cmd_len works around ancient libtool bugs
if [ "${OSVER:0:10}" == MINGW64_NT ]; then
export lt_cv_sys_max_cmd_len=8000
export CC=x86_64-w64-mingw32-gcc
Expand All @@ -35,6 +36,9 @@ elif [ "${OSVER:0:10}" == MINGW32_NT ]; then
export CC=i686-w64-mingw32-gcc
TARG_XTRA_OPTS="--host=i686-w64-mingw32"
CFLAGS="$CFLAGS -DHAVE_DECL_ASPRINTF -DHAVE_DECL_VASPRINTF"
elif [ "${OSVER:0:9}" == "CYGWIN_NT" ]; then
export lt_cv_sys_max_cmd_len=8000
TARG_XTRA_OPTS="--host=x86_64-pc-cygwin"
fi

## Determine the maximum number of processes that Make can work with.
Expand Down
Loading