Skip to content

Commit

Permalink
Add /usr/local to header/library search path on BSD
Browse files Browse the repository at this point in the history
libexecinfo and libintl are located in /usr/local on FreeBSD and
OpenBSD, and possibly on other BSD systems I haven't tested as well.
Makefile currently doesn't add /usr/local/include and /usr/local/lib to
header and library search paths, so users will have to manually specify
by prepending

CPLUS_INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib

before gmake command to compile.
  • Loading branch information
BrettDong authored and Ramza13 committed Apr 12, 2021
1 parent 72dcca7 commit c06f325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,10 @@ ifeq ($(BSD), 1)
ifeq ($(LOCALIZE),1)
LDFLAGS += -lintl -liconv
endif

# libexecinfo, libintl and libiconv may be located in /usr/local on BSD
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
endif

# Global settings for Windows targets (at end)
Expand Down

0 comments on commit c06f325

Please sign in to comment.