diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-15 02:57:08 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-09-15 02:57:08 +0000 |
commit | b83c0eaa789c1e1527712ef4c3c985dde6539c3a (patch) | |
tree | 1d9da4e0d93624e886b42e699519739dcf6c0d7f /jpl/Sample | |
parent | 30944b6df13d14ca352a3fdf86275e7fe6eb44b5 (diff) | |
download | perl-b83c0eaa789c1e1527712ef4c3c985dde6539c3a.tar.gz |
update to JPL snapshot v09141999, with minor tweaks (from Brian
Jepson <bjepson@home.com>)
p4raw-id: //depot/perl@4159
Diffstat (limited to 'jpl/Sample')
-rw-r--r-- | jpl/Sample/Makefile.PL | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/jpl/Sample/Makefile.PL b/jpl/Sample/Makefile.PL index 944c7e180d..cd6b09360f 100644 --- a/jpl/Sample/Makefile.PL +++ b/jpl/Sample/Makefile.PL @@ -14,11 +14,16 @@ $WHAT =~ s#.*/##; if ($^O eq 'linux') { $flags = "-Dbool=char"; # avoid builtin bool altogether $libs = "-lc -lm -ldl"; -} -else { +} else { $flags = ""; $libs = "-lc -lm -ldl"; } + +# Needed for JNI +if ($^O eq 'solaris') { + $libs .= " -lthread"; +} + chop($cwd = `pwd`); ($jpldir = $cwd) =~ s#/[^/]*$##; @@ -65,7 +70,8 @@ lib$(WHAT)_g.so: $(WHAT).c $(JPL_HOME)/lib/$(ARCHNAME)/libPerlInterpreter_g.so $(LIBS) \ -o lib$(WHAT)_g.so -test: +test: all + java $(WHAT) install: all cp *.class $(JPL_HOME)/lib |