diff options
author | Jan Kara <jack@suse.cz> | 2011-01-11 23:26:00 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2011-01-11 23:26:41 +0100 |
commit | 6fc667685854f1f5596e9fd378558a23eba020c2 (patch) | |
tree | accb0ae834e861e91058ccbac4769614a1d97cae | |
parent | 67ae95699869f640fd078569dc4a391bd73495a9 (diff) | |
download | linuxquota-6fc667685854f1f5596e9fd378558a23eba020c2.tar.gz |
Allow admin to not strip quota binaries while installing them
Stripping binaries may cause problems during crosscompilation.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | configure.in | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 5002fed..aeaa79f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -10,7 +10,7 @@ LDFLAGS = @LDFLAGS@ LDAPLIBS = @LDAPLIBS@ INSTALL = @INSTALL@ -STRIP = -s +STRIP = @STRIP@ LN = ln -sf ROOTDIR = SUPER_OWNER = root diff --git a/configure.in b/configure.in index c08840e..0601f86 100644 --- a/configure.in +++ b/configure.in @@ -30,6 +30,16 @@ else LDFLAGS="$LDFLAGS -static" fi +dnl Strip binaries before installation +AC_ARG_ENABLE(strip-binaries, [ --enable-strip-binaries=[yes/no] Strip binaries while installing them [default=yes].], + , + enable_strip="yes") +if test "x$enable_strip" = "xyes"; then + STRIP="-s" +else + STRIP="" +fi + dnl Checks for libraries. AC_ARG_ENABLE(ldapmail, [ --enable-ldapmail=[yes/no/try] Enable ldap mail address lookups [default=no].], , @@ -253,5 +263,6 @@ AC_SUBST(LIBMALLOC) AC_SUBST(INSTMO) AC_SUBST(ROOTSBIN) AC_SUBST(CPPFLAGS) +AC_SUBST(STRIP) AC_OUTPUT(Makefile) |