diff options
-rw-r--r-- | configure.in | 12 | ||||
-rw-r--r-- | jack.spec.in | 6 | ||||
-rw-r--r-- | jackd/Makefile.am | 3 |
3 files changed, 16 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 75f504f..39f9ade 100644 --- a/configure.in +++ b/configure.in @@ -66,6 +66,17 @@ AC_ARG_ENABLE(capabilities, AC_SUBST(JACK_CFLAGS) +STRIPPED_JACKD=false +AC_ARG_ENABLE(stripped-jackd, + [ --enable-stripped-jackd strip jack before computing its md5 sum ], + [ if test "x$USE_CAPABILITIES" != "xtrue" ; then + AC_MSG_WARN([*** capabilities not enabled, stripped jackd has no effect]) + elif test "x$enable_stripped_jackd" != "xno"; then + STRIPPED_JACKD=true + fi + ] +) + # plugins (just jack_alsa.so at the moment) go in the addon dir. ADDON_DIR=${libdir}/jack @@ -131,6 +142,7 @@ AM_CONDITIONAL(HAVE_FLTK, $HAVE_FLTK) AM_CONDITIONAL(HAVE_SNDFILE, $HAVE_SNDFILE) AM_CONDITIONAL(HAVE_DOXYGEN, $HAVE_DOXYGEN) AM_CONDITIONAL(USE_CAPABILITIES, $USE_CAPABILITIES) +AM_CONDITIONAL(STRIPPED_JACKD, $STRIPPED_JACKD) AC_OUTPUT( Makefile jack.pc diff --git a/jack.spec.in b/jack.spec.in index 94834f7..b6c6c6a 100644 --- a/jack.spec.in +++ b/jack.spec.in @@ -12,10 +12,6 @@ Source0: %{name}-%{version}.tar.gz URL: http://jackit.sourceforge.net BuildRoot: /var/tmp/%{name}-%{version}-root-%(id -u -n) -# disable build root strip policy, otherwise rpm strips the executables -# and the jackd md5 checksum checked by jackstart does not match. -%define __spec_install_post /usr/lib/rpm/brp-compress || : - %description JACK is a low-latency audio server, written primarily for the Linux operating system. It can connect a number of different applications to @@ -50,7 +46,7 @@ Small example clients that use the Jack Audio Connection Kit. %build %if "%{enable_capabilities}" == "1" -%configure --enable-capabilities +%configure --enable-capabilities --enable-stripped-jackd %else %configure %endif diff --git a/jackd/Makefile.am b/jackd/Makefile.am index 6e71dc8..c07cc78 100644 --- a/jackd/Makefile.am +++ b/jackd/Makefile.am @@ -20,6 +20,9 @@ noinst_HEADERS = jack_md5.h md5.h md5_loc.h BUILT_SOURCES = jack_md5.h jack_md5.h: jackd +if STRIPPED_JACKD + strip -R .note -R .comment .libs/jackd +endif echo "#define JACKD_MD5_SUM \"`md5sum .libs/jackd | awk '{print $$1}'`\"" > jack_md5.h jackstart_SOURCES = jackstart.c md5.c |