Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Passing compilation options through to cpan/cpanm

by ondohotola (Initiate)
on Jun 12, 2019 at 09:04 UTC ( [id://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 (Archbishop) 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 (Scribe) on Jun 12, 2019 at 13:06 UTC
Re: Passing compilation options through to cpan/cpanm
by Haarg (Priest) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found