Add -all-static when --enable-static
This commit is contained in:
1 parent
7675f7434a
commit
cf1306f469
2 files changed
+6
No files matched your search
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
### C source files to be built and distributed.
|
### C source files to be built and distributed.
|
||||||
|
|
||||||
LIBJQ_INCS = jq_parser.h builtin.h bytecode.h compile.h exec_stack.h \
|
LIBJQ_INCS = jq_parser.h builtin.h bytecode.h compile.h exec_stack.h \
|
||||||
@@ -71,6 +72,10 @@ jq_SOURCES = main.c version.h
|
|||||||
jq_LDFLAGS = -static-libtool-libs
|
jq_LDFLAGS = -static-libtool-libs
|
||||||
jq_LDADD = libjq.la -lm
|
jq_LDADD = libjq.la -lm
|
||||||
|
|
||||||
|
if ENABLE_ALL_STATIC
|
||||||
|
jq_LDFLAGS += -all-static
|
||||||
|
endif
|
||||||
|
|
||||||
### Tests (make check)
|
### Tests (make check)
|
||||||
|
|
||||||
TESTS = tests/all.test
|
TESTS = tests/all.test
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ EOF
|
|||||||
|
|
||||||
AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" != xno])
|
AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" != xno])
|
||||||
AM_CONDITIONAL([ENABLE_ERROR_INJECTION], [test "x$enable_error_injection" = xyes])
|
AM_CONDITIONAL([ENABLE_ERROR_INJECTION], [test "x$enable_error_injection" = xyes])
|
||||||
|
AM_CONDITIONAL([ENABLE_ALL_STATIC], [test "x$enable_static" = xyes])
|
||||||
|
|
||||||
AC_FIND_FUNC([isatty], [c], [#include <unistd.h>], [0])
|
AC_FIND_FUNC([isatty], [c], [#include <unistd.h>], [0])
|
||||||
AC_FIND_FUNC([_isatty], [c], [#include <io.h>], [0])
|
AC_FIND_FUNC([_isatty], [c], [#include <io.h>], [0])
|
||||||
|
|||||||
Reference in new issue
Block a user