From b493ed32b81ea9bbb880e5d50026082ac44ecfb8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 26 Jan 2022 09:35:22 -0800 Subject: get Teliva working on FreeBSD --- README.md | 5 +++-- src/Makefile | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69aa97d..e4c02bf 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,9 @@ OS and package manager of choice: * `sudo apt install libncursesw6-dev openssl` * `brew install ncurses openssl` -So far I've tested Teliva on Linux, Mac OS X, OpenBSD and NetBSD; it should work -on other flavors of BSD, WSL on Windows, etc. with only minor modifications. +So far I've tested Teliva on Linux, Mac OS X, OpenBSD, NetBSD and FreeBSD; it +should work on other flavors of BSD, WSL on Windows, etc. with only minor +modifications. ## What else can it do? diff --git a/src/Makefile b/src/Makefile index 8843669..65dea6d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -85,7 +85,9 @@ ansi: $(MAKE) all MYCFLAGS=-DLUA_ANSI freebsd: - $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E" + $(MAKE) -C luasocket bsd + $(MAKE) -C luasec bsd + $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lncursesw" generic: $(MAKE) all MYCFLAGS= -- cgit 1.4.1-2-gfad0