From: Ken Raeburn Date: Tue, 8 Jan 2002 23:51:44 +0000 (+0000) Subject: * shlib.conf: For Linux, always add "-lc" at the end of the link command X-Git-Tag: krb5-1.3-alpha1~898 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9567ca2d451162647e530339a2960410ee8af4bc;p=krb5.git * shlib.conf: For Linux, always add "-lc" at the end of the link command git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14094 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/ChangeLog b/src/config/ChangeLog index dbfbd32e7..2f6902d99 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -1,5 +1,8 @@ 2002-01-08 Ken Raeburn + * shlib.conf: For Linux, always add "-lc" at the end of the link + command. + * libobj.in (config.status): Depend on shlib.conf. 2001-10-20 Ken Raeburn diff --git a/src/config/shlib.conf b/src/config/shlib.conf index bae060e48..2b94ad77c 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -250,6 +250,14 @@ mips-*-netbsd*) # Linux ld doesn't default to stuffing the SONAME field... # Use objdump -x to examine the fields of the library LDCOMBINE='ld -shared -h lib$(LIB)$(SHLIBSEXT)' + # Linux libc does weird stuff at shlib link time, must be + # explicitly listed here. This also makes it get used even + # for the libraries marked as not having any dependencies; while + # that's not strictly correct, the resulting behavior -- not adding + # extra -R directories -- is still what we want. + LDCOMBINE_TAIL="-lc" + # For cases where we do have dependencies on other libraries + # built in this tree... SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' PROFFLAGS=-pg CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,-rpath -Wl,$(PROG_RPATH)'