Link against openssl.

This commit is contained in:
Dominik Pantůček 2025-03-31 21:32:37 +02:00
parent 6748d4327c
commit 4cd4fa3bb1
3 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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)))

View file

@ -54,6 +54,7 @@ trap chicken_cleanup INT QUIT
# Install required eggs
chicken_install spiffy
chicken_install openssl
# Normal termination cleanup
chicken_cleanup