Setting PATH within Makefile on Mac OS X (but it works on Linux)

我怕爱的太早我们不能终老 提交于 2019-12-07 07:56:28
TomOnTime

It turns out the PATH variable is special and isn't exported unless "SHELL" is also set. In other words, if I add this one line to the Makefile it works on both Mac and Linux:

SHELL=/bin/bash

This, of course, makes me wonder why the Mac is different. Hopefully by documenting this here others that see this problem will also benefit. Plus, I'd like to know why the Mac is different, if it really is.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!