diff options
author | Ken Raeburn <raeburn@mit.edu> | 2003-09-13 04:16:10 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2003-09-13 04:16:10 +0000 |
commit | 7ccf1eeadf51f00517798df0cb22e8a61aabddf7 (patch) | |
tree | 9f22a2d8517f6ab37fe83ebe348b4c5496b95d87 /src/config/shlib.conf | |
parent | 8a90c524a02c79ec49b6039702d7bc0523a1db57 (diff) | |
download | krb5-7ccf1eeadf51f00517798df0cb22e8a61aabddf7.tar.gz krb5-7ccf1eeadf51f00517798df0cb22e8a61aabddf7.tar.xz krb5-7ccf1eeadf51f00517798df0cb22e8a61aabddf7.zip |
* shlib.conf (*-*-linux*): Use gcc for linking shared libraries, and -Wl to
pass linker flags in, so gcc can supply the necessary support libraries.
ticket: 1790
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15818 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/shlib.conf')
-rw-r--r-- | src/config/shlib.conf | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/config/shlib.conf b/src/config/shlib.conf index 156495f64..7422d0a69 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -263,21 +263,27 @@ mips-*-netbsd*) SHLIBEXT=.so # 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" + LDCOMBINE='gcc -shared -fPIC -Wl,-h,lib$(LIB)$(SHLIBSEXT)' + LDCOMBINE_TAIL='' # For cases where we do have dependencies on other libraries # built in this tree... - SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' + SHLIB_EXPFLAGS='-Wl,-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' PROFFLAGS=-pg RPATH_FLAG='-Wl,-rpath -Wl,' CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) $(LDFLAGS)' CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)' RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;' + + ## old version: + # 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='ld -shared -h lib$(LIB)$(SHLIBSEXT)' + #LDCOMBINE_TAIL="-lc" + #SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' + ;; *-*-aix*) |