Fix t_seqstate build with Solaris compiler
authorGreg Hudson <ghudson@mit.edu>
Tue, 25 Mar 2014 16:28:05 +0000 (12:28 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 28 Mar 2014 15:53:46 +0000 (11:53 -0400)
The Solaris native compiler (as of version 5.9) outputs code for
static inline functions even if they are not used.  So the
k5buf_to_gss helper in gssapiP_generic.h causes t_seqstate to have a
dependency on libkrb5support.

ticket: 7872

src/lib/gssapi/generic/Makefile.in

index 530a0a96e6a03a24fe449c14c07b6e4ab42dd54d..c8681fb662205868762a490f07e08a6164d64412 100644 (file)
@@ -146,8 +146,9 @@ clean-windows::
        $(RM) $(HDRS) maptest.h
        -if exist $(EHDRDIR)\nul rmdir $(EHDRDIR)
 
-t_seqstate: t_seqstate.o util_seqstate.o
-       $(CC_LINK) $(ALL_CFLAGS) -o $@ t_seqstate.o util_seqstate.o
+t_seqstate: t_seqstate.o util_seqstate.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) $(ALL_CFLAGS) -o $@ t_seqstate.o util_seqstate.o \
+               $(SUPPORT_LIB)
 
 check-unix:: t_seqstate
        $(RUN_SETUP) $(VALGRIND) ./t_seqstate