On 28/11/2011 15:55, Sam Hartman wrote:
> Hi. Typically -L flags are included in KRB5_LIBS not KRB5_LDFLAGS. In
> fact, in your first patch, a couple of lines below where you include
> KRB5_LDFLAGS, -L$dir/lib is included in KRB5_LIBS
>
> Is the KRB5_LDFLAGS changes not needed or is it sufficient to have
> /usr/local before /usr in the search order for krb5?
_L flags are included in the other _LD_FLAGS macros (EAP_LDFLAGS,
SHIBSP_LDFLAGS, SHIBRESOLVER_LDFLAGS, OPENSAML_LDFLAGS, OPENSSL_LDFLAG,
RADSEC_LDFLAGS, LIBMOONSHOT_LDFLAGS and JANSSON_LDFLAGS_.
The other _LIBS macros contain only "-l" directives not "-L".
The KRB5_LIBS doesn't get added to the linker command line until *after*
the _LDFLAGS so the "-L /usr/local" in KRB5_LIBS appears after the "-L
/usr" from the _LDFLAGS. We then try link against the Krb in /usr/lib
and the link fails.
The "-L" in KRB5_LIBS seems to be the odd one out - I can remove that if
you wish?
--
Pete Fotheringham
Codethink Ltd
http://codethink.co.uk
+44 7740 351755
|