Include the support library when linking various test programs, because on
authorKen Raeburn <raeburn@mit.edu>
Wed, 18 Jan 2006 02:00:32 +0000 (02:00 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 18 Jan 2006 02:00:32 +0000 (02:00 +0000)
Solaris, with the vendor compiler, we'll always get references to
krb5int_pthread_loaded due to unused inline functions not being eliminated.

(Also inclued it in dependencies, and use CC_LINK when it wasn't used before.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17592 dc483132-0cff-0310-8789-dd5450dbe970

14 files changed:
src/lib/crypto/ChangeLog
src/lib/crypto/Makefile.in
src/lib/crypto/des/ChangeLog
src/lib/crypto/des/Makefile.in
src/lib/crypto/md4/ChangeLog
src/lib/crypto/md4/Makefile.in
src/lib/crypto/md5/ChangeLog
src/lib/crypto/md5/Makefile.in
src/lib/crypto/sha1/ChangeLog
src/lib/crypto/sha1/Makefile.in
src/lib/des425/ChangeLog
src/lib/des425/Makefile.in
src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/Makefile.in

index 7365bc29377433bee673a644886e5cb01fc94aef..66c87632f2b46b8fe507efab432dd0a5ff60367d 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (t_nfold$(EXEEXT)): Include support library.
+
 2006-01-11  Sam Hartman  <hartmans@mit.edu>
 
        * keyblocks.c (krb5int_c_free_keyblock): Remove krb5_callconv modifier
index 70d7bb3d3d28035367276e3cc94df59f89cc83f6..ed2e103b38a888fc395d2f1c557814473af3a5c8 100644 (file)
@@ -186,28 +186,28 @@ check-unix:: t_nfold t_encrypt t_prf t_prng t_hmac t_pkcs5
 
 #      $(RUN_SETUP) ./t_pkcs5
 
-t_nfold$(EXEEXT): t_nfold.$(OBJEXT) nfold.$(OBJEXT)
-       $(CC_LINK) -o $@ t_nfold.$(OBJEXT) nfold.$(OBJEXT)
+t_nfold$(EXEEXT): t_nfold.$(OBJEXT) nfold.$(OBJEXT) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ t_nfold.$(OBJEXT) nfold.$(OBJEXT) $(SUPPORT_LIB)
 
-t_encrypt$(EXEEXT): t_encrypt.$(OBJEXT) nfold.$(OBJEXT) $(CRYPTO_DEPLIB)
+t_encrypt$(EXEEXT): t_encrypt.$(OBJEXT) nfold.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_encrypt.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
 
-t_prf$(EXEEXT): t_prf.$(OBJEXT) 
+t_prf$(EXEEXT): t_prf.$(OBJEXT) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_prf.$(OBJEXT)  -lkrb5 -lk5crypto -lcom_err $(SUPPORT_LIB)
 
-t_prng$(EXEEXT): t_prng.$(OBJEXT) 
+t_prng$(EXEEXT): t_prng.$(OBJEXT) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_prng.$(OBJEXT)  -lk5crypto -lcom_err $(SUPPORT_LIB)
 
-t_hmac$(EXEEXT): t_hmac.$(OBJEXT) $(CRYPTO_DEPLIB)
+t_hmac$(EXEEXT): t_hmac.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_hmac.$(OBJEXT) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
 
-t_pkcs5$(EXEEXT): t_pkcs5.$(OBJEXT) $(CRYPTO_DEPLIB)
+t_pkcs5$(EXEEXT): t_pkcs5.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_pkcs5.$(OBJEXT) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
 
-vectors$(EXEEXT): vectors.$(OBJEXT) $(CRYPTO_DEPLIB)
+vectors$(EXEEXT): vectors.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ vectors.$(OBJEXT) $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
 
-t_cts$(EXEEXT): t_cts.$(OBJEXT) $(CRYPTO_DEPLIB)
+t_cts$(EXEEXT): t_cts.$(OBJEXT) $(CRYPTO_DEPLIB) $(SUPPORT_DEPLIB)
        $(CC_LINK) -o $@ t_cts.$(OBJEXT) \
                $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB)
 
index 3e1628a446dba594d96893a8c88f29a637f360de..5aee62fc266e54492e8c982f904688ba1acc31a4 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (destest$(EXEEXT)): Include support library.
+
 2005-06-10  Ken Raeburn  <raeburn@mit.edu>
 
        * destest.c (main): Force testing of unaligned access to input,
index 86d0becf230882dd1f71090b38cf3e691ea441f2..acd4af603be08e688893c33166db91f9e86e34b5 100644 (file)
@@ -65,8 +65,8 @@ verify$(EXEEXT): t_verify.$(OBJEXT) $(TOBJS) f_parity.$(OBJEXT) \
        $(CC_LINK) -o $@ t_verify.$(OBJEXT) $(TOBJS) f_parity.$(OBJEXT) \
                -lcom_err $(SUPPORT_LIB)
 
-destest$(EXEEXT): destest.$(OBJEXT) $(TOBJS)
-       $(CC_LINK) -o $@ destest.$(OBJEXT) $(TOBJS)
+destest$(EXEEXT): destest.$(OBJEXT) $(TOBJS) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ destest.$(OBJEXT) $(TOBJS) $(SUPPORT_LIB)
 
 TAFSS2KOBJS =                                                          \
        t_afss2k.$(OBJEXT) $(TOBJS)                                     \
index 06eac6c69c81f3deed0ea62e339dc358e8571dd9..5537d85707d9422ed374224d9a4bfae895c544cc 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (t_mddriver): Include support library.  Use
+       CC_LINK.
+
 2005-05-01  Ken Raeburn  <raeburn@mit.edu>
 
        * md4.c (Transform) [CONFIG_SMALL]: Roll loops for each round.
index cb0e0f4b7d9a84a9584843ab90e1b8f5da5dc068..4dd977e3c9eb5248bdefb0993f191451dcdd04b8 100644 (file)
@@ -33,8 +33,8 @@ t_mddriver.c: $(srcdir)/../md5/t_mddriver.c
 t_mddriver.o: t_mddriver.c
        $(CC) -DMD=4 $(ALL_CFLAGS) -c  t_mddriver.c
 
-t_mddriver: t_mddriver.o md4.o
-       $(CC) $(ALL_CFLAGS) -o t_mddriver t_mddriver.o md4.o
+t_mddriver: t_mddriver.o md4.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_mddriver t_mddriver.o md4.o $(SUPPORT_LIB)
 
 $(OUTPRE)t_mddriver.obj: t_mddriver.c
        $(CC) -DMD=4 $(ALL_CFLAGS) -Fo$@ -c $**
index ab8d2ca30023346cc8cce8f86a7b79db248981c1..bd9a817125bb4bcc46660fac75ba832a1f041128 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (t_mddriver): Include support library.  Use
+       CC_LINK.
+
 2005-05-01  Ken Raeburn  <raeburn@mit.edu>
 
        * md5.c (Transform) [CONFIG_SMALL]: Roll loops for each round.
index 4c0b6a3d6a484d703cff9a2e5dd228d14c8f6a0c..35f14fafc0302f53048d3900c115f91df1e18bfc 100644 (file)
@@ -26,8 +26,8 @@ includes:: depend
 
 depend:: $(SRCS)
 
-t_mddriver: t_mddriver.o md5.o
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o t_mddriver t_mddriver.o md5.o
+t_mddriver: t_mddriver.o md5.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_mddriver t_mddriver.o md5.o $(SUPPORT_LIB)
 
 $(OUTPRE)t_mddriver.exe: $(OUTPRE)t_mddriver.obj $(OUTPRE)md5.obj
        link -out:$@ $**
index 9da70f9c4acce779e7baf77cfa6c55f06bcbe5c2..e02427682b8d82299cfd10cfe44ca5c2afcd7f8f 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (t_shs, t_shs3): Include support library.  Use
+       CC_LINK.
+
 2005-05-01  Ken Raeburn  <raeburn@mit.edu>
 
        * shs.c (SHSTransform) [CONFIG_SMALL]: Roll loops for each round.
index 90abe2ce66d97861aaa880be12949d74429ce658..d2e0b87d100e322430531484ab0690fa63cba19a 100644 (file)
@@ -26,8 +26,8 @@ includes:: depend
 
 depend:: $(SRCS)
 
-t_shs: t_shs.o shs.o
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o t_shs t_shs.o shs.o
+t_shs: t_shs.o shs.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_shs t_shs.o shs.o $(SUPPORT_LIB)
 
 $(OUTPRE)t_shs.exe: $(OUTPRE)t_shs.obj $(OUTPRE)shs.obj
        link -out:$@ $**
@@ -45,8 +45,8 @@ clean::
 
 clean-unix:: clean-libobjs
 
-t_shs3: t_shs3.o shs.o
-       $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o t_shs3 t_shs3.o shs.o
+t_shs3: t_shs3.o shs.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_shs3 t_shs3.o shs.o $(SUPPORT_LIB)
 
 # @libobj_frag@
 
index 3a6f8b19049cb26cf51938732d414be5e3ca692d..0667b6f08831add2b39df5826858d688660647e8 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (t_quad): Include support library.
+
 2005-08-20  Ken Raeburn  <raeburn@mit.edu>
 
        * configure.in: Use K5_AC_INIT instead of AC_INIT.
index ba894273c3a9a84c7c49f3cd25798555c7025248..0257f7029fb9b16da4f99f85adbb41baeff8242e 100644 (file)
@@ -84,8 +84,8 @@ shared:
 verify: verify.o $(DES425_DEPLIB) $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o $@ verify.o $(DES425_LIB) $(KRB5_BASE_LIBS)
 
-t_quad: t_quad.o quad_cksum.o
-       $(CC_LINK) -o $@ t_quad.o quad_cksum.o
+t_quad: t_quad.o quad_cksum.o $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o $@ t_quad.o quad_cksum.o $(SUPPORT_LIB)
 
 t_pcbc: t_pcbc.o pcbc_encrypt.o key_sched.o $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o $@ t_pcbc.o pcbc_encrypt.o key_sched.o $(KRB5_BASE_LIBS)
index 93047c5bd52bee7ce8196f5448fb72eeca95c030..14ef1b5660f8ad01d9889ecac7864d974d923d4d 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * Makefile.in (t_deltat): Include support library.
+
 2005-12-30  Tom Yu  <tlyu@mit.edu>
 
        * gc_frm_kdc.c: Rewrite to modularize significantly.  (~400-line
index 9b3903cb6356045bff0fbe0385fc30f348448487..a15eb374e80080a8bc3e279856ed445e28fb4632 100644 (file)
@@ -310,8 +310,8 @@ t_ser: $(T_SER_OBJS) $(KDB5_DEPLIBS) $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o t_ser $(T_SER_OBJS) \
                $(KDB5_LIBS) $(KRB5_BASE_LIBS) $(DL_LIB) $(THREAD_LINKOPTS)
 
-t_deltat : $(T_DELTAT_OBJS)
-       $(CC_LINK) -o t_deltat $(T_DELTAT_OBJS)
+t_deltat : $(T_DELTAT_OBJS) $(SUPPORT_DEPLIB)
+       $(CC_LINK) -o t_deltat $(T_DELTAT_OBJS) $(SUPPORT_LIB)
 
 T_EXPAND_OBJS=t_expand.o
 t_expand.o : t_expand.c