On 12/06/2013 12:58 PM, Hannes Reinecke wrote:
> Adding '-ld' to avoid link failures of dependent
> libraries / applications.
> 
> Signed-off-by: Hannes Reinecke <[email protected]>
> ---
>  Makefile.am | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Makefile.am b/Makefile.am
> index ffb53b9..ab14cb2 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -2,6 +2,7 @@ lib_LTLIBRARIES = libHBAAPI.la
>  libHBAAPI_la_SOURCES = hbaapi.h vendorhbaapi.h
>  nodist_libHBAAPI_la_SOURCES = hbaapilib.c
>  libHBAAPI_la_LDFLAGS = -version-info 2:2:0
> +libHBAAPI_la_LIBADD = -ldl
>  
>  nobase_include_HEADERS = hbaapi.h vendorhbaapi.h
>  
> 
Gnaa.

I should've mentioned this is actually for
libHBAAPI, not fcoe-utils.

Anyway; this patch is a requirement to get
'-Wl,--as-needed' to work with fcoe-utils,
so you need to rebuild libHBAAPI with
this patch before trying to rebuild
fcoe-utils with my latest patchset.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                   zSeries & Storage
[email protected]                          +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
_______________________________________________
fcoe-devel mailing list
[email protected]
http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel

Reply via email to