svn rev #23758: trunk/src/config/

ghudson@MIT.EDU ghudson at MIT.EDU
Sat Feb 27 04:49:32 EST 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23758
Commit By: ghudson
Log Message:
On Linux platforms, use -Wl,--enable-new-dtags when linking shared
libraries and programs using them.  The primary effect is to get ld to
set DT_RUNPATH in addition to DT_RPATH, which in turn allows the
LD_LIBRARY_PATH environment variable to override the compiled-in
runpath, which is friendlier to the test framework.



Changed Files:
U   trunk/src/config/shlib.conf
Modified: trunk/src/config/shlib.conf
===================================================================
--- trunk/src/config/shlib.conf	2010-02-25 21:33:05 UTC (rev 23757)
+++ trunk/src/config/shlib.conf	2010-02-27 09:49:32 UTC (rev 23758)
@@ -412,12 +412,12 @@
 	# 
 	LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(top_srcdir)/util/export-check.pl $(SHLIB_EXPORT_FILE) $@'
 	SHLIB_EXPORT_FILE_DEP=binutils.versions
+	RPATH_FLAG='-Wl,--enable-new-dtags -Wl,-rpath -Wl,'
 	# For cases where we do have dependencies on other libraries
 	# built in this tree...
-	SHLIB_RPATH_FLAGS='-Wl,-R$(SHLIB_RDIRS)'
+	SHLIB_RPATH_FLAGS='$(RPATH_FLAG)$(SHLIB_RDIRS)'
 	SHLIB_EXPFLAGS='$(SHLIB_RPATH_FLAGS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
 	PROFFLAGS=-pg
-	RPATH_FLAG='-Wl,-rpath -Wl,'
 	PROG_RPATH_FLAGS='$(RPATH_FLAG)$(PROG_RPATH)'
 	CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(PROG_RPATH_FLAGS) $(CFLAGS) $(LDFLAGS)'
 	CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)'




More information about the cvs-krb5 mailing list