Closed Bug 276152 Opened 20 years ago Closed 19 years ago

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

Categories

(Firefox Build System :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: engel, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

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).
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
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
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)
Great!  Chris, thank you for fixing this and for testing.
Attachment #201152 - Flags: review?(benjamin) → review+
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: