develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #5844] [5.7.0] PERL5OPT messes with build

From:
Leon Timmermans via RT
Date:
September 25, 2013 23:52
Subject:
[perl #5844] [5.7.0] PERL5OPT messes with build
Message ID:
rt-3.6.HEAD-31239-1380153165-1938.5844-15-0@perl.org
On Mon May 07 17:03:26 2012, tonyc wrote:
> Anything that loads a non in-lib core module?
> 
>  # just an example, Imager isn't suitable for PERL5OPT -M
>  $ ./Configure -des -Dusedevel && PERL5OPT=-MImager make -j3
>  ...
>  cc -fstack-protector -L/usr/local/lib -o miniperl \
>             perlmini.o opmini.o miniperlmain.o   gv.o toke.o perly.o
>    pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o keywords.o hv.o
>    av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o
>    doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o
>    perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o
>    -lnsl -ldl -lm -lcrypt -lutil -lc
>  ./miniperl -w -Ilib -MExporter -e '<?>' || make minitest
>  Can't locate Imager.pm in @INC (@INC contains: lib .).
>  BEGIN failed--compilation aborted.
> 
> Perhaps there's a less ridiculous option that causes a build failure.

Can't this just be solved by adding a «PERL5OPT=» line in the Makefile?
That way, the environmental variable is overridden but miniperl can
still use PERL5OPT if required.

Leon


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=5844



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About