diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2002-01-08 23:51:44 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2002-01-08 23:51:44 +0000 |
| commit | 9567ca2d451162647e530339a2960410ee8af4bc (patch) | |
| tree | a9bf283a9e9528ad31ad7aac7d8f11767e21b2d6 /src | |
| parent | d4fee4b04899b201090382a41668378a012c6638 (diff) | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/ChangeLog | 3 | ||||
| -rw-r--r-- | src/config/shlib.conf | 8 |
2 files changed, 11 insertions, 0 deletions
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 <raeburn@mit.edu> + * 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 <raeburn@mit.edu> 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)' |
