diff options
author | Andreas Beckmann <anbe@debian.org> | 2014-05-23 15:23:26 +0200 |
---|---|---|
committer | Andreas Beckmann <anbe@debian.org> | 2014-05-23 15:46:57 +0200 |
commit | 413b5efd6d9b2970c1b40277b0e1bf9d706c3433 (patch) | |
tree | 87908ae2d4a611de48f974c65354a80061f488ee /debian | |
parent | 77609ea4f23fe3f134d7f87c488dd1f5cf13c5ed (diff) | |
download | sendmail-413b5efd6d9b2970c1b40277b0e1bf9d706c3433.tar.gz |
add support for building a shared libmilter to the sendmail build system
Diffstat (limited to 'debian')
-rw-r--r-- | debian/build/site.config.m4.in | 1 | ||||
-rw-r--r-- | debian/patches/8.14/8.14.4/series | 1 | ||||
-rw-r--r-- | debian/patches/8.14/8.14.4/shared_libmilter.patch | 25 |
3 files changed, 27 insertions, 0 deletions
diff --git a/debian/build/site.config.m4.in b/debian/build/site.config.m4.in index 72d4c4b..6607c06 100644 --- a/debian/build/site.config.m4.in +++ b/debian/build/site.config.m4.in @@ -105,6 +105,7 @@ APPENDDEF(`conf_libmilter_ENVDEF', `@sm_libmilter_envdef@') APPENDDEF(`conf_libmilter_LIBS', `@sm_libmilter_libs@') APPENDDEF(`conf_libmilter_ENVDEF', `-DSM_CONF_POLL=1') APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_WORKERS_POOL=1') +define(`conf_libmilter_SOVERSION', `@sm_libmilter_version@')dnl # # libsm APPENDDEF(`conf_libsm_ENVDEF', `@sm_libsm_envdef@') diff --git a/debian/patches/8.14/8.14.4/series b/debian/patches/8.14/8.14.4/series index ea67190..b0fe181 100644 --- a/debian/patches/8.14/8.14.4/series +++ b/debian/patches/8.14/8.14.4/series @@ -19,3 +19,4 @@ socket_activation.patch _ffr_tls_ec.patch ssl_op_no_tlsv1_x.patch install_static_libs.patch +shared_libmilter.patch diff --git a/debian/patches/8.14/8.14.4/shared_libmilter.patch b/debian/patches/8.14/8.14.4/shared_libmilter.patch new file mode 100644 index 0000000..92e1c12 --- /dev/null +++ b/debian/patches/8.14/8.14.4/shared_libmilter.patch @@ -0,0 +1,25 @@ +--- a/libmilter/Makefile.m4 ++++ b/libmilter/Makefile.m4 +@@ -29,6 +29,22 @@ POPDIVERT + + + divert(bldTARGETS_SECTION) ++sm_libmilter_version = conf_libmilter_SOVERSION ++ ++libmilter.a: libmilter.so.${sm_libmilter_version} ++libmilter.so.${sm_libmilter_version}: ${BEFORE} ${libmilterOBJS} ++ ${CC} -shared -pthread \ ++ -o libmilter.so.${sm_libmilter_version} \ ++ -fPIC ${CFLAGS} \ ++ -Wl,-soname,libmilter.so.${sm_libmilter_version} \ ++ $(filter-out -fpie,${LDFLAGS}) \ ++ ${libmilterOBJS} ++ ${LN} ${LNOPTS} libmilter.so.${sm_libmilter_version} libmilter.so ++ ++libmilter-clean: libmilter-clean-shared ++libmilter-clean-shared: ++ rm -f libmilter.so libmilter.so.${sm_libmilter_version} ++ + # Install the API header files + MFAPI= ${SRCDIR}/inc`'lude/libmilter/mfapi.h + MFDEF= ${SRCDIR}/inc`'lude/libmilter/mfdef.h |