diff options
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)' |
