static build on cygwin/mingw broken (should not link Urlmon)

RESOLVED FIXED in mozilla1.9alpha1


Firefox Build System
14 years ago
2 months ago


(Reporter: Hans-Andreas Engel, Unassigned)


Windows XP

Firefox Tracking Flags

(Not tracked)



(1 attachment, 1 obsolete attachment)



14 years ago
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

This problem can be fixed easily by removing "Urlmon" from STATIC_EXTRA_LIBS in
config/  It seems that this library is not used at all (I am
using --disable-accessibility and --disable-activex).

Comment 1

14 years ago
Created attachment 169667 [details] [diff] [review]

removing "Urlmon" from statically linking

removing "Urlmon" from statically linking

enables static builds on cygwin

Comment 2

14 years ago
Is the "Urlmon" library used when building with MSVC?  If not, we could remove
it generally.  Maybe also #include <urlmon.h> could be removed.

Comment 3

14 years ago
Hans-Andreas, you're going to have to answer those kinds of questions before I
can review this, or find somebody who can.

Comment 4

14 years ago
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 is required.


13 years ago
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

Comment 5

13 years ago
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.
Attachment #169667 - Attachment is obsolete: true
Attachment #201152 - Flags: review?(benjamin)

Comment 6

13 years ago
Great!  Chris, thank you for fixing this and for testing.


13 years ago
Attachment #201152 - Flags: review?(benjamin) → review+


13 years ago
Last Resolved: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha


2 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.