Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Passing compilation options through to cpan/cpanm

by syphilis (Archbishop)
on Jun 12, 2019 at 12:59 UTC ( [id://11101281]=note: print w/replies, xml ) Need Help??


in reply to Passing compilation options through to cpan/cpanm

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11101281]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-24 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found