Skip to content

Commit

Permalink
fix: pass EXPAT_DIR and LIBXML2_DIR when building Kong luarock
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Hübner authored and hutchic committed Oct 26, 2022
1 parent 0b7a303 commit 8db7580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-kong.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ pushd /kong
OPENSSL_DIR=/usr/local/kong \
YAML_LIBDIR=/tmp/build/usr/local/kong/lib \
YAML_INCDIR=/tmp/yaml \
EXPAT_DIR=/usr/local/kong \
LIBXML2_DIR=/usr/local/kong \
CFLAGS="-L/tmp/build/usr/local/kong/lib -Wl,-rpath,/usr/local/kong/lib -O2 -std=gnu99 -fPIC"

mkdir -p /tmp/build/etc/kong
Expand Down
2 changes: 2 additions & 0 deletions test/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ RUN /usr/local/bin/luarocks make kong-*.rockspec \
CRYPTO_DIR=/usr/local/kong \
OPENSSL_DIR=/usr/local/kong \
YAML_LIBDIR=/usr/local/kong/lib \
EXPAT_DIR=/usr/local/kong \
LIBXML2_DIR=/usr/local/kong \
CFLAGS="-L/usr/local/kong/lib -Wl,-rpath,/usr/local/kong/lib -O2 -fPIC"
RUN make dev

Expand Down

0 comments on commit 8db7580

Please sign in to comment.