Closed Bug 671264 Opened 13 years ago Closed 11 years ago

Look for js headers in "include/js/" in addition of "include/$jsname/"

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mounir, Assigned: mounir)

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
TBH, I doubt jsname should be used for something else than the lib name but at least with this patch we are safe in both cases.
Attachment #545658 - Flags: review?(tglek)
It would probably be better to "simply" rely on pkg-config.
Attachment #545658 - Flags: review?(tglek) → review+
(In reply to comment #1)
> It would probably be better to "simply" rely on pkg-config.

As I understand it, that would require checking if "js", "mozjs" or "mozjs185" is the correct module and then use `pkg-config --cflags mozjs185` and cut it to find the correct include directory. Is that what you had in mind?
(In reply to comment #1)
> It would probably be better to "simply" rely on pkg-config.

I don't think that's terribly tenable for people who rely on building spidermonkey from source instead of using distro-provided versions.
Was going trough my old bugs, it's now pushed:
https://hg.mozilla.org/rewriting-and-analysis/dehydra/rev/9a7704207d98

Feel free to open a follow-up to use pkg-config.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [needs review]
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: