From 8d70968dda6d39ed015843bf374367851bc85d62 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 11 Aug 2009 14:48:04 +0000 Subject: [PATCH] 2009-08-11 16:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/globsh.cf * config/win/bcc.cf + Added NOTEs about Windows NT family command-line length limits. It's 2047 for NT/2000 and 8191 for XP and upper. Seemingly also on Vista or Windows 7. Probably memory is still too expensive at MS ;) or, they want us to switch to PowerShell? --- harbour/ChangeLog | 8 ++++++++ harbour/config/globsh.cf | 5 +++++ harbour/config/win/bcc.cf | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 1ae4b8a947..727d2559f5 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,14 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-08-11 16:36 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * config/globsh.cf + * config/win/bcc.cf + + Added NOTEs about Windows NT family command-line length limits. + It's 2047 for NT/2000 and 8191 for XP and upper. + Seemingly also on Vista or Windows 7. Probably memory is still + too expensive at MS ;) or, they want us to switch to PowerShell? + 2009-08-11 16:12 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * config/bin.cf % Using := instead of = for 'BIN_NAME'. diff --git a/harbour/config/globsh.cf b/harbour/config/globsh.cf index 7a8913199e..f4d687e242 100644 --- a/harbour/config/globsh.cf +++ b/harbour/config/globsh.cf @@ -54,6 +54,11 @@ endif ifeq ($(HB_SHELL),nt) +# NOTE: According to http://support.microsoft.com/kb/830473 +# The command line length limit for cmd.exe is 8191 chars +# for Windows XP and upper and 2047 for Windows NT and 2000. +# [vszakats] + MK := "$(subst \,/,$(MAKE))" RM := del /q /f RDP := rmdir /q /s diff --git a/harbour/config/win/bcc.cf b/harbour/config/win/bcc.cf index df9a749608..c176f01645 100644 --- a/harbour/config/win/bcc.cf +++ b/harbour/config/win/bcc.cf @@ -50,6 +50,10 @@ ARFLAGS := /P64 ifneq ($(HB_SHELL),sh) + # NOTE: Command-line limit length defeating methods found below + # are only needed to support pre-Windows XP systems, where + # limit is 2047 chars. [vszakats] + # NOTE: The empty line directly before 'endef' HAVE TO exist! define lib_object @echo -+$(subst /,\,$(file)) ^& >> __lib__.tmp