Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Aug 28, 2024
1 parent e2193c9 commit f392758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ AC_CONFIG_AUX_DIR([ac])
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror -Wno-portability foreign])
AM_SILENT_RULES([yes])

# Without this line, AC_PROG_CC boneheadedly adds `-g -O2` to our CFLAGS.
AC_SUBST(CFLAGS, "")
AC_SUBST(AM_CFLAGS)
AC_PROG_CC
AC_USE_SYSTEM_EXTENSIONS

Expand Down
6 changes: 3 additions & 3 deletions contrib/build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ if [ ! -f "${INSTALL_DIR}/musl/bin/musl-gcc" ]; then
fi

export PATH="${PATH}:${INSTALL_DIR}/musl/bin"
export CFLAGS="${CFLAGS} -isystem ${INSTALL_DIR}/musl/include"
export CC=musl-gcc

# build libtirpc
Expand Down Expand Up @@ -116,7 +117,7 @@ if [ ! -f "${BUILD_DIR}/sqlite/libsqlite3.la" ]; then
cd sqlite
./configure --disable-shared --disable-readline --prefix="${INSTALL_DIR}" \
CFLAGS="${CFLAGS} -DSQLITE_ENABLE_DBSTAT_VTAB=1"
make install -j BCC="${CC} -g -O2 ${CFLAGS} ${LDFLAGS}"
make install -j BCC="${CC} -g -O2 ${CFLAGS}"
)
fi

Expand All @@ -128,8 +129,7 @@ if [ ! -f "${BUILD_DIR}/dqlite/libdqlite.la" ]; then
git clone "${REPO_DQLITE}" --depth 1 --branch "${TAG_DQLITE}"
cd dqlite
autoreconf -i
./configure --disable-shared --enable-build-raft --prefix="${INSTALL_DIR}" \
CFLAGS="${CFLAGS} -I${INSTALL_DIR}/musl/include"
./configure --disable-shared --enable-build-raft --prefix="${INSTALL_DIR}"

make unit-test LDFLAGS=-all-static
pwd
Expand Down

0 comments on commit f392758

Please sign in to comment.