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>
# 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)'