Skip to content
Snippets Groups Projects
Commit d8c5745c authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Support static builds.

parent e07d7284
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,13 @@ AC_DISABLE_STATIC ...@@ -77,6 +77,13 @@ AC_DISABLE_STATIC
AC_ENABLE_SHARED AC_ENABLE_SHARED
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
if test "$enable_shared" = yes; then
SUB_CONFIGURE_FLAGS="--enable-shared --disable-static"
else
SUB_CONFIGURE_FLAGS="--enable-static --disable-shared"
fi
AC_SUBST(SUB_CONFIGURE_FLAGS)
# Use 64-bit file system calls so that we can support files > 2 GiB. # Use 64-bit file system calls so that we can support files > 2 GiB.
AC_SYS_LARGEFILE AC_SYS_LARGEFILE
......
...@@ -19,7 +19,7 @@ build-aterm: ...@@ -19,7 +19,7 @@ build-aterm:
else else
build-aterm: $(ATERM) build-aterm: $(ATERM)
(cd $(ATERM) && \ (cd $(ATERM) && \
CC="$(CC)" ./configure --prefix=$(pkglibdir)/dummy --libdir=${pkglibdir} && \ CC="$(CC)" ./configure --prefix=$(pkglibdir)/dummy --libdir=${pkglibdir} $(SUB_CONFIGURE_FLAGS) && \
$(MAKE) && \ $(MAKE) && \
$(MAKE) check) $(MAKE) check)
touch build-aterm touch build-aterm
...@@ -79,7 +79,7 @@ build-sqlite: ...@@ -79,7 +79,7 @@ build-sqlite:
else else
build-sqlite: $(SQLITE) build-sqlite: $(SQLITE)
(cd $(SQLITE) && \ (cd $(SQLITE) && \
CC="$(CC)" ./configure --disable-static --prefix=$(pkglibdir)/dummy --libdir=${pkglibdir} && \ CC="$(CC)" ./configure --disable-static --prefix=$(pkglibdir)/dummy --libdir=${pkglibdir} $(SUB_CONFIGURE_FLAGS) && \
$(MAKE) ) $(MAKE) )
touch build-sqlite touch build-sqlite
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment