[erlang-sd_notify] Explicitly link shared library with libsystemd (#1148604)

John Eckersberg jeckersb at fedoraproject.org
Thu Oct 2 14:56:36 UTC 2014


commit 65f85cdfc6bf273153564fcba3869f4a5bd884c8
Author: John Eckersberg <jeckersb at redhat.com>
Date:   Thu Oct 2 10:34:13 2014 -0400

    Explicitly link shared library with libsystemd (#1148604)

 erlang-sd_notify.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/erlang-sd_notify.spec b/erlang-sd_notify.spec
index df10ac0..cdab32b 100644
--- a/erlang-sd_notify.spec
+++ b/erlang-sd_notify.spec
@@ -9,7 +9,7 @@
 
 Name:		erlang-%{realname}
 Version:	0.1
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Erlang interface to systemd notify subsystem
 Group:		Development/Languages
 License:	MIT
@@ -33,7 +33,7 @@ Requires:	erlang-stdlib%{?_isa}
 
 
 %build
-CFLAGS="%{optflags}" REBAR_FLAGS="--verbose 2" make %{?_smp_mflags}
+CFLAGS="%{optflags}" LDFLAGS=-lsystemd REBAR_FLAGS="--verbose 2" make %{?_smp_mflags}
 
 
 %install
@@ -59,6 +59,9 @@ install -m 755 -p priv/%{realname}_drv.so $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%
 
 
 %changelog
+* Thu Oct  2 2014 John Eckersberg <eck at redhat.com> - 0.1-4
+- Explicitly link shared library with libsystemd (#1148604)
+
 * Thu Aug 28 2014 Peter Lemenkov <lemenkov at gmail.com> - 0.1-3
 - Rebuild with Erlang 17.2.1
 


More information about the scm-commits mailing list