Number: 2008
Title: config.rpath returns the wrong lib search path on 64bit machines (x86_64)
Submitter: Robert Szabo
Date: Mon Aug 2 04:54:09 2010
Subsys: Build/Installation
Version: 2.26.3
System: x86-Linux-Centos5 (5.3)
Severity: major
Problem:
configure figures out the right sys_lib_search_path_spec and sys_lib_dlsearch_path_spec but then runs 'sh ./config/config.rpath' which does not take into account the (,usr)/lib64 lib search path on x86_64 and eventually returns this, overriding the correct paths:

------------------------------8<----------------------------------
# How to pass a linker flag through the compiler.
acl_cv_wl=""

# Static library suffix (normally "a"). acl_cv_libext="a"

# Shared library suffix (normally "so"). acl_cv_shlibext=""

# Flag to hardcode $libdir into a binary during linking. # This must work even if $libdir does not exist. acl_cv_hardcode_libdir_flag_spec=""

# Whether we need a single -rpath flag with a separated argument. acl_cv_hardcode_libdir_separator=""

# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the # resulting binary. acl_cv_hardcode_direct="no"

# Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. acl_cv_hardcode_minus_L="no"

# Compile-time system search path for libraries acl_cv_sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"

# Run-time system search path for libraries acl_cv_sys_lib_dlsearch_path_spec="/lib /usr/lib"

------------------------------8<----------------------------------

libtool will want to link the 64bit objects against 32bit libraries..

Robert
Fix:
excluding the section "checking for shared library run path origin... " from configure seems to solve the linking problem.
Owner: ellson
Status: *