Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Add --with-static configure switch to build unruu statically.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdm committed Oct 27, 2011
1 parent b70e46f commit bc40a54
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -D_FORTIFY_SOURCE=0 $(UNSHIELD_CFLAGS)
AM_LDFLAGS = $(UNSHIELD_LDFLAGS)
AM_LDFLAGS = $(EXTRA_LDFLAGS) $(UNSHIELD_LDFLAGS)
bin_PROGRAMS = unruu
unruu_SOURCES = unruu.c
unruu_LDADD = $(UNSHIELD_LIBS)
3 changes: 2 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
if [ "$1" == "clean" ]; then
rm -f Makefile Makefile.in configure aclocal.m4
rm -f missing depcomp install-sh
rm -f missing depcomp install-sh config.guess config.sub ltmain.sh
find m4/ -lname \* -exec rm -f {} \;
else
autoreconf -fsi
fi
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
AC_CONFIG_MACRO_DIR([m4])
AC_INIT([unruu],[0.1])
AM_INIT_AUTOMAKE([1.10 no-define foreign])
AC_PROG_LIBTOOL
AC_PROG_CC

AC_ARG_WITH([static], AS_HELP_STRING([--with-static],
[Build unruu statically]))

AS_IF([test "x$with_static" = "xyes"], [
AC_SUBST([EXTRA_LDFLAGS], [-all-static])
])

PKG_CHECK_MODULES([UNSHIELD], [libunshield >= 0.7], [], [AC_MSG_ERROR(
[unruu requires at least version 0.7 of libunshield]
)])
Expand Down

0 comments on commit bc40a54

Please sign in to comment.