tavianator/bfs

Fix FreeBSD build after ONIGURUMA ON

driesmp opened this issue · 6 comments

Seems like we are missing some include dirs on FreeBSD.
I would expect to see -I /usr/local/include somewhere.

I guess specifying an "include dir" in the Makefile could work.

So a while ago I read through https://wiki.freebsd.org/WarnerLosh/UsrLocal and https://reviews.freebsd.org/V6 and my impression was that when building ports, /usr/local/{include,lib} were added to the search paths automatically. Is that not the case?

If you need to add them explicitly, you can do

$ gmake EXTRA_CPPFLAGS="-I/usr/local/include" EXTRA_LDFLAGS="-L/usr/local/lib"

or set those variables in the environment.

Actually on second thought, I will fix this automatically by invoking onig-config. That way local development on FreeBSD is much less painful

Fix works great thanks.

Can tavianator/homebrew-tap#2 be related or is this a local to me issue?