fcoe-utils/fcoe-utils-1.0.29-as-needed.patch
Tomáš Chvátal e0524a2cb6 - Redo the autotools patch to actually fix --as-needed build,
should be upstreamed.
- Adds patch: fcoe-utils-1.0.29-as-needed.patch
- Removes patch: fcoe-utils-1.0.29-no-as-needed.patch

OBS-URL: https://build.opensuse.org/package/show/network:fcoe/fcoe-utils?expand=0&rev=5
2013-10-10 15:22:42 +00:00

29 lines
1.0 KiB
Diff

diff -urN fcoe-utils-1.0.29.old/Makefile.am fcoe-utils-1.0.29/Makefile.am
--- fcoe-utils-1.0.29.old/Makefile.am 2013-10-10 17:20:17.341411557 +0200
+++ fcoe-utils-1.0.29/Makefile.am 2013-10-10 17:20:58.284411552 +0200
@@ -9,21 +9,18 @@
## rules for building fcoeadm
fcoeadm_SOURCES = fcoeadm.c fcoeadm_display.c
-fcoeadm_LDADD = lib/libutil.a libopenfcoe.a
+fcoeadm_LDADD = lib/libutil.a libopenfcoe.a $(HBAAPI_LIBS)
fcoeadm_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS)
-fcoeadm_LDFLAGS = $(AM_LDFLAGS) $(HBAAPI_LIBS)
## rules for building fcoemon
fcoemon_SOURCES = fcoemon.c
-fcoemon_LDADD = lib/libutil.a
+fcoemon_LDADD = lib/libutil.a -lrt
fcoemon_CFLAGS = $(AM_CFLAGS) $(DCBD_CFLAGS)
-fcoemon_LDFLAGS = $(AM_LDFLAGS) -lrt
## rules for building fcping
fcping_SOURCES = fcping.c
-fcping_LDADD = lib/libutil.a
+fcping_LDADD = lib/libutil.a $(HBAAPI_LIBS) -lrt
fcping_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS)
-fcping_LDFLAGS = $(AM_LDFLAGS) $(HBAAPI_LIBS) -lrt
## rules for building fipvlan
fipvlan_SOURCES = fipvlan.c