Closed
Bug 561510
Opened 15 years ago
Closed 15 years ago
warning LNK4044: unrecognized option '/L../../dist/bin'; ignored when linking xul.dll
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla2.0b4
People
(Reporter: RyanVM, Assigned: wtc)
References
Details
(Whiteboard: [build_warning])
Attachments
(1 file, 2 obsolete files)
2.50 KB,
patch
|
benjamin
:
review+
ginnchen+exoracle
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
This appeared recently. Haven't tracked down a regression range yet.
Reporter | ||
Comment 1•15 years ago
|
||
Ted, can you point me to where libxul gets its build flags? I'm assuming there's just a missing space somewhere.
Comment 2•15 years ago
|
||
Reporter | ||
Comment 3•15 years ago
|
||
This was caused by bug 550823. Looking at config.mk (and the build logs), it appears that this pattern is used in many places and this warning is generated for the rest as well. Is the -L flag gcc-only?
Blocks: 550823
Comment 4•15 years ago
|
||
MSVC uses -libpath:DIR instead of -L DIR
Reporter | ||
Comment 5•15 years ago
|
||
How does this look? If you like this, I'll file a follow-up bug for fixing the other instances like this.
Assignee: nobody → ryanvm
Attachment #443250 -
Flags: review?(ted.mielczarek)
Comment 6•15 years ago
|
||
Comment on attachment 443250 [details] [diff] [review]
patch v1
Why does this use $(DIST)/bin anyway? Most things we link from $(DIST)/lib. If it really needs to be /bin, you should use EXPAND_LIBNAME_PATH. If not, just use EXPAND_LIBNAME. (Sorry, I know this isn't your code originally, but we might as well fix it right.)
Attachment #443250 -
Flags: review?(ted.mielczarek) → review-
Reporter | ||
Updated•15 years ago
|
Whiteboard: [build_warning]
Reporter | ||
Comment 7•15 years ago
|
||
Ben/Micah, is there any particular reason dist/bin was used in the original patch we should be aware of?
Comment 8•15 years ago
|
||
(In reply to comment #7)
> Ben/Micah, is there any particular reason dist/bin was used in the original
> patch we should be aware of?
I put dist/bin as that's where I saw it installed and it worked :). It seems to be in dist/lib as well, so from my perspective, I have no problem. I was unaware of the convention of using dist/lib, but, it was my first patch.
Comment 9•15 years ago
|
||
Ryan, still working on this?
Assignee | ||
Comment 10•15 years ago
|
||
I found that the EXPAND_LIBNAME_PATH function is
designed to solve exactly this problem.
I'm not sure if we should use $(DIST)/lib or
$(LIBXUL_DIST)/lib. I use $(DIST)/lib in this
patch because it's seems to be where $(IMPORT_LIBRARY)
or $(SHARED_LIBRARY) is installed:
http://mxr.mozilla.org/mozilla-central/source/config/rules.mk#916
Attachment #443250 -
Attachment is obsolete: true
Attachment #462701 -
Flags: review?(benjamin)
Assignee | ||
Comment 11•15 years ago
|
||
This MXR query shows two occurrences of
-L$(LIBXUL_DIST)/lib $(MOZALLOC_LIB) \
that probably should also be fixed:
http://mxr.mozilla.org/mozilla-central/search?string=MOZALLOC_LIB
Assignee | ||
Comment 12•15 years ago
|
||
toolkit/components/ctypes/tests/Makefile.in also has an
"unrecognized option" linker warning if --enable-tests is
specified.
So I also fixed it and xpcom/build/Makefile.in.
Attachment #462701 -
Attachment is obsolete: true
Attachment #462708 -
Flags: review?(benjamin)
Attachment #462701 -
Flags: review?(benjamin)
Assignee | ||
Comment 13•15 years ago
|
||
Comment on attachment 462708 [details] [diff] [review]
Use EXPAND_LIBNAME_PATH instead of EXPAND_MOZLIBNAME, v2
The two instances of
-L$(LIBXUL_DIST)/lib $(MOZALLOC_LIB) \
come from bug 550371.
Ginn, could you please test this patch on Solaris?
Thanks.
Attachment #462708 -
Flags: review?(ginn.chen)
Comment 14•15 years ago
|
||
Comment on attachment 462708 [details] [diff] [review]
Use EXPAND_LIBNAME_PATH instead of EXPAND_MOZLIBNAME, v2
built successfully on Solaris
Attachment #462708 -
Flags: review?(ginn.chen) → review+
Updated•15 years ago
|
Attachment #462708 -
Flags: review?(benjamin) → review+
Attachment #462708 -
Flags: approval2.0?
Updated•15 years ago
|
Attachment #462708 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 15•15 years ago
|
||
Assignee: ryanvm → wtc
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b4
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•