Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 May 2014 07:28:26 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r265313 - stable/10/secure/usr.sbin/sshd
Message-ID:  <201405040728.s447SQ9Y037993@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun May  4 07:28:26 2014
New Revision: 265313
URL: http://svnweb.freebsd.org/changeset/base/265313

Log:
  MFC r265003:
  Fix order of libthr and libc in the global dso list for sshd.

Modified:
  stable/10/secure/usr.sbin/sshd/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/secure/usr.sbin/sshd/Makefile
==============================================================================
--- stable/10/secure/usr.sbin/sshd/Makefile	Sun May  4 07:22:51 2014	(r265312)
+++ stable/10/secure/usr.sbin/sshd/Makefile	Sun May  4 07:28:26 2014	(r265313)
@@ -57,6 +57,16 @@ CFLAGS+= -DNONE_CIPHER_ENABLED
 DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
 LDADD+= -lcrypt -lcrypto -lz
 
+# Fix the order of NEEDED entries for libthr and libc. The libthr
+# needs to interpose libc symbols, leaving the libthr loading as
+# dependency of krb causes reversed order and broken interposing. Put
+# the threading library last on the linker command line, just before
+# the -lc added by a compiler driver.
+.if ${MK_KERBEROS_SUPPORT} != "no"
+DPADD+= ${LIBPTHREAD}
+LDADD+= -lpthread
+.endif
+
 .if defined(LOCALBASE)
 CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405040728.s447SQ9Y037993>