[autossh] Patch build to honor $LDFLAGS.
Ville Skyttä
scop at fedoraproject.org
Mon Nov 14 22:48:23 UTC 2011
commit 25eb2678190b229158fe6c8246d0c21b1ba7c795
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Nov 15 00:48:16 2011 +0200
Patch build to honor $LDFLAGS.
autossh-1.4c-ldflags.patch | 12 ++++++++++++
autossh.spec | 8 +++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/autossh-1.4c-ldflags.patch b/autossh-1.4c-ldflags.patch
new file mode 100644
index 0000000..bda6d97
--- /dev/null
+++ b/autossh-1.4c-ldflags.patch
@@ -0,0 +1,12 @@
+diff -up autossh-1.4c/Makefile.in~ autossh-1.4c/Makefile.in
+--- autossh-1.4c/Makefile.in~ 2011-10-12 23:30:40.000000000 +0300
++++ autossh-1.4c/Makefile.in 2011-10-30 21:57:35.554395846 +0200
+@@ -31,7 +31,7 @@ all: $(TARGET)
+
+
+ $(TARGET): $(OFILES)
+- $(CC) $(CPPFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
++ $(CC) $(CPPFLAGS) $(LDFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
+
+ clean:
+ - /bin/rm -f *.o *.a *.core *~
diff --git a/autossh.spec b/autossh.spec
index 9f0188b..4665bfb 100644
--- a/autossh.spec
+++ b/autossh.spec
@@ -1,11 +1,13 @@
Summary: Utility to autorestart SSH tunnels
Name: autossh
Version: 1.4c
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Group: Applications/Internet
URL: http://www.harding.motd.ca/autossh/index.html
Source0: http://www.harding.motd.ca/autossh/autossh-1.4c.tgz
+# Sent upstream 2011-10-30
+Patch0: autossh-1.4c-ldflags.patch
BuildRequires: /usr/bin/ssh
Requires: /usr/bin/ssh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -16,6 +18,7 @@ dies or stops passing traffic, autossh will automatically restart it.
%prep
%setup -q
+%patch0 -p1
%build
%configure
@@ -45,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/*
%changelog
+* Mon Nov 14 2011 Ville Skyttä <ville.skytta at iki.fi> - 1.4c-2
+- Patch build to honor $LDFLAGS.
+
* Sun Oct 30 2011 Alexander Boström <abo at root.snowtree.se> - 1.4c-1
- Upgrade to 1.4c
More information about the scm-commits
mailing list