Skip to content

Commit

Permalink
Fix compilation and linking on Freebsd
Browse files Browse the repository at this point in the history
Freebsd packages and ports install header files and libraries under
/usr/local. Readline and Wxwidgets are ports.
  • Loading branch information
Jose123456 committed Aug 8, 2020
1 parent 3532de8 commit 5b7b923
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,15 @@ WXVERSION=2.8

endif

#
# FreeBSD rules. Tested on 12.1.
#
ifeq (${OS},FreeBSD)

# Readline and Wxwidgets are installed under /usr/local on Freebsd
COMMON_CXXFLAGS=-I/usr/local/include
COMMON_LDFLAGS=-L/usr/local/lib

# This is only needed for bossash, but we can't add it to BOSSASH_LIBS here
# because that one is redefined later.
COMMON_SRCS+=PosixSerialPort.cpp BSDPortFactory.cpp
Expand Down

0 comments on commit 5b7b923

Please sign in to comment.