Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Linker semantics have changed; we now don't automat...



details:   https://anonhg.NetBSD.org/src/rev/adf1c7afdcac
branches:  trunk
changeset: 1008832:adf1c7afdcac
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 04 13:33:14 2020 +0000

description:
Linker semantics have changed; we now don't automatically link dependent
libraries from other DSO's. For example in /usr/bin/passwd:
ld: krb5_passwd.o: undefined reference to symbol \
        'UI_UTIL_read_pw_string@@OPENSSL_1_1_0'
ld: /usr/obj/amd64-x86_64/release/lib/libcrypto.so.14: error adding symbols: \
        DSO missing from command line

diffstat:

 share/mk/bsd.prog.mk |  14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)

diffs (34 lines):

diff -r 642db7132f37 -r adf1c7afdcac share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Sat Apr 04 13:18:26 2020 +0000
+++ b/share/mk/bsd.prog.mk      Sat Apr 04 13:33:14 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.prog.mk,v 1.327 2020/04/04 03:35:01 christos Exp $
+#      $NetBSD: bsd.prog.mk,v 1.328 2020/04/04 13:33:14 christos Exp $
 #      @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -221,21 +221,15 @@
 .endfor
 
 .if (${MKKERBEROS} != "no")
-LIBKRB5_LDADD+= -lkrb5 -lcom_err
-LIBKRB5_DPADD+= ${LIBKRB5} ${LIBCOM_ERR}
-# Kerberos5 applications, if linked statically, need more libraries
-LIBKRB5_STATIC_LDADD+= \
+# Kerberos5 applications
+LIBKRB5_LDADD+= -lkrb5 -lcom_err \
        -lhx509 -lcrypto -lasn1 \
        -lwind -lheimbase -lcom_err -lroken \
        -lsqlite3 -lcrypt -lutil
-LIBKRB5_STATIC_DPADD+= \
+LIBKRB5_DPADD+= ${LIBKRB5} ${LIBCOM_ERR} \
        ${LIBHX509} ${LIBCRYPTO} ${LIBASN1} \
        ${LIBWIND} ${LIBHEIMBASE} ${LIBCOM_ERR} ${LIBROKEN} \
        ${LIBSQLITE3} ${LIBCRYPT}  ${LIBUTIL}
-. if (${MKPIC} == "no")
-LIBKRB5_LDADD+= ${LIBKRB5_STATIC_LDADD}
-LIBKRB5_DPADD+= ${LIBKRB5_STATIC_DPADD}
-. endif
 .endif
 
 # PAM applications, if linked statically, need more libraries



Home | Main Index | Thread Index | Old Index