Building a static version of firefox (probably the same for mozilla) does not work on a standard cygwin installation; it fails while linking firefox.exe. The linker cannot find "-lUrlmon," since MinGW currently does not provide the "Urlmon" library (see http://cvs.sourceforge.net/viewcvs.py/mingw/w32api/lib/). This problem can be fixed easily by removing "Urlmon" from STATIC_EXTRA_LIBS in config/static-config.mk. It seems that this library is not used at all (I am using --disable-accessibility and --disable-activex).
Created attachment 169667 [details] [diff] [review] removing "Urlmon" from statically linking removing "Urlmon" from statically linking enables static builds on cygwin
Is the "Urlmon" library used when building with MSVC? If not, we could remove it generally. Maybe also #include <urlmon.h> could be removed.
Hans-Andreas, you're going to have to answer those kinds of questions before I can review this, or find somebody who can.
I am not asking for a review on this patch. (I only described a problem, the reason why it appears, and how it could be fixed on cygwin.) Benjamin, I thought you might be interested in this issue and added you as CC; sorry if this caused a misunderstanding. Indeed, I would like to find someone who has MSVC (I don't) and could try if linking firefox/mozilla without the "Urlmon" library works. Otherwise, this library can only be removed for cygwin, i.e., a more sophisticated patch to static-config.mk is required.
Assignee: bryner → nobody
Component: Build Config → Build Config
Product: Firefox → Core
QA Contact: asa → build-config
Summary: static build on cygwin broken (should not link Urlmon) → static build on cygwin/mingw broken (should not link Urlmon)
Version: unspecified → Trunk
Created attachment 201152 [details] [diff] [review] remove all urlmon references This patch removes all core urlmon references (except the activex plugin) from the tree. I tested it with mingw gcc & the free vc71 builds.
Great! Chris, thank you for fixing this and for testing.
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
You need to log in before you can comment on or make changes to this bug.