Closed Bug 114013 Opened 23 years ago Closed 23 years ago

static build fails to link libxpinstall.so

Categories

(SeaMonkey :: Build Config, defect)

DEC
OpenVMS
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: colin, Assigned: netscape)

Details

I just tried a static build and everything went find except for one problem. In 
the link of libxpinstall.so (xpinstall/src), it couldn't find the mozjs library. 
The reference is MOZ_JS_LIBS which is defined as -L$(DIST)/bin -lmozjs. Problem 
is that when libmozjs.a was built in js/src it got installed to dist/lib, not 
dist/bin.

dist/lib does appear on the libxpinstall ld command line, but its AFTER -lmozjs. 
Doesn't ld only search -L directories that were specified BEFORE the -l ??
That's certainly the way I have it working on OpenVMS.
It might depend upon the linker although I would expect the behavior that you
are seeing.  Here's the quick fix:

Index: xpinstall/src/Makefile.in

-               -L$(DIST)/bin \
+               $(LIBS_DIR) \
Status: NEW → ASSIGNED
Keywords: mozilla0.9.7
Target Milestone: --- → mozilla0.9.7
Yep, that ought to do it.
r=bryner
I verified that this change fixed the problem on OpenVMS.
a=asa (on behalf of drivers) for checkin to 0.9.7
Checking in xpinstall/src/Makefile.in;
/cvsroot/mozilla/xpinstall/src/Makefile.in,v  <--  Makefile.in
new revision: 1.58; previous revision: 1.57
done
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.