projects
/
fw
/
stlink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7299146
)
add --enable-static support to autoconf
author
texane
<texane@gmail.com>
Tue, 3 Feb 2015 18:07:06 +0000
(19:07 +0100)
committer
texane
<texane@gmail.com>
Tue, 3 Feb 2015 18:07:06 +0000
(19:07 +0100)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index f1357b12165e276bf14a35b93b29db8eda84272e..b8eb66d5806c49f331ea4273fdf0dd4d65e9e3be 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-13,8
+13,10
@@
AC_PROG_CC
AC_PROG_INSTALL
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
AC_PROG_INSTALL
AC_CANONICAL_HOST
AC_CANONICAL_BUILD
-AC_PROG_RANLIB
AM_PROG_CC_C_O
AM_PROG_CC_C_O
+AC_CONFIG_MACRO_DIR([m4])
+
+LT_INIT
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/poll.h)
AC_CHECK_HEADERS(sys/mman.h)
AC_CHECK_HEADERS(sys/poll.h)
@@
-49,6
+51,11
@@
if test "x$with_gtk" = "xyes"; then
fi
AC_SUBST([MAYBE_GUI])
fi
AC_SUBST([MAYBE_GUI])
+AC_ARG_ENABLE([static], AS_HELP_STRING([--enable-static], [enable binaries static linking]))
+if test "x$enable_static" = "xyes"; then
+ LDFLAGS="$LDFLAGS -all-static"
+fi
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_CONFIG_FILES([Makefile])
AC_OUTPUT