diff --git a/Makefile.am b/Makefile.am index 5cbc15f..1e8d1cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,7 +11,7 @@ AM_CFLAGS = -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes fcoeadm_SOURCES = fcoeadm.c fcoeadm_display.c fcoeadm_LDADD = lib/libutil.a libopenfcoe.a fcoeadm_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS) -fcoeadm_LDFLAGS = $(AM_LDFLAGS) $(HBAAPI_LIBS) +fcoeadm_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-as-needed $(HBAAPI_LIBS) ## rules for building fcoemon fcoemon_SOURCES = fcoemon.c @@ -23,7 +23,7 @@ fcoemon_LDFLAGS = $(AM_LDFLAGS) -lrt fcping_SOURCES = fcping.c fcping_LDADD = lib/libutil.a fcping_CFLAGS = $(AM_CFLAGS) $(HBAAPI_CFLAGS) -fcping_LDFLAGS = $(AM_LDFLAGS) $(HBAAPI_LIBS) -lrt +fcping_LDFLAGS = $(AM_LDFLAGS) -Wl,--no-as-needed $(HBAAPI_LIBS) -lrt ## rules for building fipvlan fipvlan_SOURCES = fipvlan.c