***SPAM*** Re: [ofa-general] ***SPAM*** [PATCH] opensm/*/Makefile.am: remove explicit -lpthread and -ldl flags from Makefile.am
Ira Weiny
weiny2 at llnl.gov
Mon Jul 28 08:48:21 PDT 2008
Sasha,
On Sun, 27 Jul 2008 21:47:05 +0300
Sasha Khapyorsky <sashak at voltaire.com> wrote:
>
> -lpthread and -ldl are standard things and can be generated by
> /configure into LIBS variable and we don't need to specify this
> explicitly in Makefiles. If so remove already not used lopensm_LDFLAGS
> and osmtest_LDFLAGS variables too.
>
> Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
<snip>
>
> diff --git a/opensm/configure.in b/opensm/configure.in
> index 7d04c14..7da932b 100644
> --- a/opensm/configure.in
> +++ b/opensm/configure.in
> @@ -38,6 +38,8 @@ fi
> dnl Checks for libraries
> AC_CHECK_LIB(pthread, pthread_mutex_init, [],
> AC_MSG_ERROR([pthread_mutex_init() not found. libosmcomp requires libpthread.]))
> +AC_CHECK_LIB(dl, dlopen, [],
> + AC_MSG_ERROR([dlopen() not found. OpenSM requires libdl.]))
>
> dnl Checks for typedefs, structures, and compiler characteristics.
> AC_C_CONST
I think it is still valid to check for the dl lib.
Ira
More information about the general
mailing list