From 4cd4fa3bb14c37cee28cbcbf16e00d6c7501dfe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Mon, 31 Mar 2025 21:32:37 +0200 Subject: [PATCH] Link against openssl. --- backend/Makefile | 2 +- backend/brminv.scm | 11 ++++++++++- install-eggs.sh | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/backend/Makefile b/backend/Makefile index 8b882ce..22cfc15 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -17,7 +17,7 @@ BRMINV_OBJS=brminv.o frontend.o command-line.o util-proc.o duck.o \ $(CSC) -regenerate-import-libraries -P -J $< ../brminv: $(BRMINV_OBJS) - $(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lsqlite3 -L -Wl,-Bdynamic -strip -static -o $@ $(BRMINV_OBJS) + $(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lssl -L -Wl,-lcrypto -L -Wl,-Bdynamic -strip -static -o $@ $(BRMINV_OBJS) frontend.o: frontend.import.scm frontend.import.scm: frontend.scm diff --git a/backend/brminv.scm b/backend/brminv.scm index 8cf5bdc..2a3f191 100644 --- a/backend/brminv.scm +++ b/backend/brminv.scm @@ -1,6 +1,9 @@ (import frontend command-line - texts) + texts + spiffy + openssl + (chicken tcp)) (define -port- (make-parameter #f)) (define -certificate- (make-parameter #f)) @@ -39,3 +42,9 @@ (when ssl? (print " Certificate:" (-certificate-)) (print " Key:" (-key-))) + +(define listener + (if ssl? + (ssl-listen port) + (tcp-listen port))) + diff --git a/install-eggs.sh b/install-eggs.sh index 0ec409b..1f39a84 100644 --- a/install-eggs.sh +++ b/install-eggs.sh @@ -54,6 +54,7 @@ trap chicken_cleanup INT QUIT # Install required eggs chicken_install spiffy +chicken_install openssl # Normal termination cleanup chicken_cleanup