Compiling a port statically

Ken Cunningham ken.cunningham.webuse at gmail.com
Sat Dec 5 06:09:12 UTC 2020


There was a nice tweak put forth by -- I think it was Bill Cole -- to 
link a port statically. I used it for bash and gmake, but the idea might 
work for other ports too.


See 
<https://github.com/kencu/myports/blob/eec2305f78ebac4f2240b47e409f19ceee035ca1/shells/bash/Portfile#L175> 
for an idea how it works.


Obviously the block would need some tweaking for a given port, it gives 
the idea.


Ken



More information about the macports-users mailing list