From 5c4184b934ce657f137425bd380b84f4bd4cefd9 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Feb 09 2010 14:03:28 +0000 Subject: - Add patch to fix building with --no-as-needed as linker option. --- diff --git a/ghex.spec b/ghex.spec index 1c9fbe3..cc53b78 100644 --- a/ghex.spec +++ b/ghex.spec @@ -1,6 +1,6 @@ Name: ghex Version: 2.24.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Binary editor for GNOME @@ -8,6 +8,7 @@ Group: Applications/Editors License: GPLv2+ URL: http://ftp.gnome.org/pub/GNOME/sources/ghex/ Source0: http://ftp.gnome.org/pub/GNOME/sources/ghex/2.24/ghex-%{version}.tar.bz2 +Patch1: ghex2-no-as-needed-patch.txt BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libgnomeui-devel @@ -44,6 +45,7 @@ This package contains a static library and include files for ghex. %prep %setup -q +%patch1 -p1 %build %configure --disable-schemas-install --disable-static @@ -105,6 +107,9 @@ scrollkeeper-update -q %changelog +* Tue Feb 09 2010 Dodji Seketeli - 2.24.0-5 +- Add patch to fix building with --no-as-needed as linker option. + * Fri Jul 24 2009 Fedora Release Engineering - 2.24.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/ghex2-no-as-needed-patch.txt b/ghex2-no-as-needed-patch.txt new file mode 100644 index 0000000..e8436d4 --- /dev/null +++ b/ghex2-no-as-needed-patch.txt @@ -0,0 +1,11 @@ +--- ghex-2.24.0/src/Makefile.in.orig 2010-02-09 13:52:26.298000048 +0100 ++++ ghex-2.24.0/src/Makefile.in 2010-02-09 13:52:44.437000108 +0100 +@@ -77,7 +77,7 @@ + gnome-print-font-picker.$(OBJEXT) factory.$(OBJEXT) \ + hex-dialog.$(OBJEXT) + ghex2_OBJECTS = $(am_ghex2_OBJECTS) +-ghex2_LDADD = $(LDADD) ++ghex2_LDADD = -lm $(LDADD) + ghex2_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ + libgtkhex.la + DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)