diff --git a/backend/Makefile b/backend/Makefile index 22cfc15..f59f2a4 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,-lssl -L -Wl,-lcrypto -L -Wl,-Bdynamic -strip -static -o $@ $(BRMINV_OBJS) + $(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lssl -L -Wl,-lcrypto -L -Wl,-Bdynamic -L -Wl,-lpq -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 27525a6..4911524 100644 --- a/backend/brminv.scm +++ b/backend/brminv.scm @@ -31,7 +31,8 @@ (chicken tcp) intarweb uri-common - (chicken string)) + (chicken string) + postgresql) (define -port- (make-parameter #f)) (define -certificate- (make-parameter #f)) @@ -73,6 +74,9 @@ (print " Certificate:" (-certificate-)) (print " Key:" (-key-))) +(define dbconn (connect "postgresql:///brmbar")) +(print dbconn) + (define listener (if ssl? (ssl-listen port) diff --git a/install-eggs.sh b/install-eggs.sh index 1f39a84..c17213d 100644 --- a/install-eggs.sh +++ b/install-eggs.sh @@ -55,6 +55,7 @@ trap chicken_cleanup INT QUIT # Install required eggs chicken_install spiffy chicken_install openssl +chicken_install postgresql # Normal termination cleanup chicken_cleanup