Skip to content

Commit

Permalink
ssl tests for libpq now working - #49
Browse files Browse the repository at this point in the history
it actually worked you just need to include openssl before diesel :((
  • Loading branch information
clux committed Apr 19, 2019
1 parent 67a677d commit 7d63dac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ RUN curl -sSL https://ftp.postgresql.org/pub/source/v$PQ_VER/postgresql-$PQ_VER.
cd postgresql-$PQ_VER && \
CC="musl-gcc -fPIE -pie" LDFLAGS="-L$PREFIX/lib" CFLAGS="-I$PREFIX/include" ./configure \
--without-readline \
--with-openssl \
--prefix=$PREFIX --host=x86_64-unknown-linux-musl && \
cd src/interfaces/libpq make -s -j$(nproc) all-static-lib && make -s install install-lib-static && \
cd ../../bin/pg_config && make -j $(nproc) && make install && \
Expand Down
5 changes: 4 additions & 1 deletion test/dieselpgsslcrate/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#[macro_use] extern crate diesel;
// The order of these extern crate lines matter for ssl!
extern crate openssl;
#[macro_use] extern crate diesel;
// openssl must be included before diesel atm.

use std::env;

fn main() {
Expand Down

0 comments on commit 7d63dac

Please sign in to comment.