From 5b7b923ae98bad71d5f060d6bfba15ea07ccec21 Mon Sep 17 00:00:00 2001 From: Jose Quinteiro Date: Sat, 8 Aug 2020 09:55:18 -0700 Subject: [PATCH] Fix compilation and linking on Freebsd Freebsd packages and ports install header files and libraries under /usr/local. Readline and Wxwidgets are ports. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 63b2b017..865f3af1 100644 --- a/Makefile +++ b/Makefile @@ -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