Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] Fix compilation on Gentoo Linux

2 views
Skip to first unread message

Ingo Blechschmidt

unread,
Jul 19, 2005, 3:26:36 PM7/19/05
to perl-ja...@perl.org
Hi,

here's a (one-word :)) patch to fix compilation of
JavaScript.xs on Gentoo Linux.

FYI, the include files of the JS engine are installed
into one of two places on Gentoo Linux:

- /usr/lib/MozillaFirefox/include/js
(If Firefox is compiled from source)

- /usr/include/js
(If Firefox is not compiled from source, but
dev-lang/spidermonkey is installed)


--Ingo

--- Makefile.PL.orig 2005-07-19 21:20:24.983114160 +0200
+++ Makefile.PL 2005-07-19 21:20:54.981553704 +0200
@@ -14,7 +14,7 @@

if(-f "/etc/gentoo-release") {
# Gentoo puts libjs in a slightly hidden spot.
- $inc = '-I/usr/lib/MozillaFirefox/include/js/ -I/usr/lib/MozillaFirefox/';
+ $inc = '-I/usr/lib/MozillaFirefox/include/js/ -I/usr/lib/MozillaFirefox/ -I/usr/include/js/';
}

#test for debian type include files...

--
Linux, the choice of a GNU | self-reference, n. - See self-reference
generation on a dual AMD |
Athlon! |

0 new messages