Closed Bug 279829 Opened 20 years ago Closed 18 years ago

Make windows build less dependent on cygwin-wrapper

Categories

(Firefox Build System :: General, enhancement)

x86
Windows NT
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: neil, Unassigned)

References

Details

My tests may be a bit limited because they all used the mingw compiler, so I was able to build under $HOME and such, which is not normally possible on Windows. I patched the cygwin-wrapper to compare the input and output and log the differences to a file. I added an ifndef GNU_CC to rules.mk to stop it converting _VPATH_SRCS to an absolute path. I built Mozilla and noticed that only a few of the calls used absolute paths (mostly NSPR's path to dist). I then patched configure to remove all the lines setting CYGWIN_WRAPPER and created an objdir build in a new tree by using mk_add_options MOZ_OBJDIR=../objdir --with-srcdir=../mozilla which ran to completion.
Blocks: 207521
The following changes make windows builds less dependent on the cygwin wrapper: * In mozilla/client.mk, remove the forced absolute path to configure This change makes srcdir builds relative by default. * In mozilla/configure.in, remove the references to the cygwin wrapper This change applies to mingw, srcdir or relative --enable-srcdir builds. * In mozilla/config/config.mk, remove the references to the cygwin wrapper * In mozilla/config/rules.mk, remove the forced absolute path to _VPATH_SRCS This change applies to srcdir or relative --enable-srcdir builds. I use a mingw objdir build with relative srcdir and a msvc srcdir build.
The absolute path is required to have MSVC debug info. See bug 141834. If you don't want to use the cygwin-wrapper, use msys instead of cygwin.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.