Accepting request 68908 from Base:System

- fix build with gcc 4.6, wrong linker options (forwarded request 68903 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/68908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/biosdevname?expand=0&rev=10
This commit is contained in:
Sascha Peilicke 2011-05-02 12:41:01 +00:00 committed by Git OBS Bridge
parent f18f1820a8
commit 8041e5a464
3 changed files with 18 additions and 1 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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}