Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Passing compilation options through to cpan/cpanm

by ondohotola (Initiate)
on Jun 12, 2019 at 09:04 UTC ( #11101272=perlquestion: print w/replies, xml ) Need Help??

ondohotola has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

Something similar has been asked here before, but It wasn't solved

Of late, the XCode command line tools on Mojave MacOs do not remember the default framework path, which i can however pass to cc by adding -F /Library/Frameworks.

I can of course edit the Makefile.PL, but I would rather prefer to pass it from the command line, because it scales better

Any Ideas?


greetings, el

  • Comment on Passing compilation options through to cpan/cpanm

Replies are listed 'Best First'.
Re: Passing compilation options through to cpan/cpanm
by syphilis (Bishop) on Jun 12, 2019 at 12:59 UTC
    Hi,
    I think that cpanm's "--configure-args" capability might be helpful to you here.
    Check the cpanm documentation.

    I rarely use any of the cpan* modules, but if you (alternatively) wanted to build modules manually, you could look at the ExtUtils::MakeMaker documentation for (eg) modifying CCFLAGS.
    One thing that I've successfully used in manual builds is to modify the "CC" setting, so you might find that something like the following works:
    perl Makefile.PL CC="cc -F /Library/Frameworks"
    If that works, I'd probably just rebuild perl with the -Dcc="cc -F /Library/Frameworks" argument.

    Cheers,
    Rob
Re: Passing compilation options through to cpan/cpanm
by chrstphrchvz (Beadle) on Jun 12, 2019 at 13:06 UTC
Re: Passing compilation options through to cpan/cpanm
by Haarg (Deacon) on Jun 12, 2019 at 11:21 UTC

    What are you trying to do that is failing? You may be able to resolve this problem by upgrading ExtUtils::MakeMaker, and not need to pass along any extra parameters.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11101272]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2019-06-25 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (107 votes). Check out past polls.

    Notices?