Skip to content

Commit

Permalink
Support libedit in Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
masto authored and thorpej committed Mar 3, 2023
1 parent 922b480 commit f79d4e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN set -eux; \
gcc \
libc-dev \
openssl-dev \
readline-dev \
libedit-dev \
make

# Copy all source files
Expand All @@ -22,6 +24,11 @@ RUN set -eux; \

FROM base as runner

RUN set -eux; \
apk add --no-cache \
readline \
libedit

ARG UID=901
ARG GID=901
ARG LIBDIR=/var/lib/nabud
Expand Down
1 change: 1 addition & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -14438,6 +14438,7 @@ printf %s "checking how to include <readline/readline.h>... " >&6; }
/* end confdefs.h. */
#include <stdio.h>
#include <readline/readline.h>
int
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ if test x$LIBEDIT_LIB != x; then
CPPFLAGS="$LIBEDIT_INCLUDES $CPPFLAGS"
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <stdio.h>
#include <readline/readline.h>
]],[[
int dummy = 0;
Expand Down

0 comments on commit f79d4e9

Please sign in to comment.