File fcoe-utils-makefile-library-fix of Package open-fcoe

Index: fcoe-utils-1.0.8/Makefile.am
===================================================================
--- fcoe-utils-1.0.8.orig/Makefile.am
+++ fcoe-utils-1.0.8/Makefile.am
@@ -9,21 +9,21 @@ AM_CFLAGS = -Wall
 
 ## rules for building fcoeadm
 fcoeadm_SOURCES = fcoeadm.c fcoeadm_display.c
-fcoeadm_LDADD = lib/libutil.a
+fcoeadm_LDADD = lib/libutil.a $(HBAAPI_LIBS)
 fcoeadm_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS)
-fcoeadm_LDFLAGS = $(AM_LDFLAGS) $(HBAAPI_LIBS)
+fcoeadm_LDFLAGS = $(AM_LDFLAGS)
 
 ## 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
+fcoemon_LDFLAGS = $(AM_LDFLAGS)
 
 ## 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
+fcping_LDFLAGS = $(AM_LDFLAGS)
 
 ## rules for building fipvlan
 fipvlan_SOURCES = fipvlan.c
openSUSE Build Service is sponsored by