diff --git a/biosdevname-0.2.4-wronglinking.patch b/biosdevname-0.2.4-wronglinking.patch new file mode 100644 index 0000000..e4da183 --- /dev/null +++ b/biosdevname-0.2.4-wronglinking.patch @@ -0,0 +1,10 @@ +--- src/Makefile.am.orig ++++ src/Makefile.am +@@ -21,7 +21,6 @@ src_biosdevname_SOURCES = \ + src/dmidecode/util.c + + src_biosdevnameS_SOURCES = $(src_biosdevname_SOURCES) +-src_biosdevnameS_LDFLAGS = -all-static + + EXTRA_DIST = \ + src/bios_dev_name.h \ diff --git a/biosdevname.changes b/biosdevname.changes index 1504fe8..8bd25ec 100644 --- a/biosdevname.changes +++ b/biosdevname.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Apr 30 15:55:06 UTC 2011 - crrodriguez@opensuse.org + +- fix build with gcc 4.6, wrong linker options + ------------------------------------------------------------------- Mon Nov 24 17:46:38 CET 2008 - bwalle@suse.de diff --git a/biosdevname.spec b/biosdevname.spec index 1e082d5..40ce115 100644 --- a/biosdevname.spec +++ b/biosdevname.spec @@ -41,7 +41,7 @@ PreReq: mkinitrd Requires: udev Patch0: %{name}-delete-unused-function.diff Patch1: %{name}-policy-all_names.diff - +Patch2: biosdevname-0.2.4-wronglinking.patch %description biosdevname in its simplest form takes an kernel name name as an argument, and returns the BIOS-given name it "should" be. This is @@ -59,8 +59,10 @@ Authors: %setup -q %patch0 -p1 %patch1 -p1 +%patch2 %build +autoreconf -fiv # this is a udev rule, so it needs to live in / rather than /usr %configure --disable-rpath --libdir=/%{_lib} --prefix=/ --bindir=/bin --sbindir=/sbin make %{?_smp_mflags}