[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

searching for libraries on RHEL/amd64

From: Albert Chin
Subject: searching for libraries on RHEL/amd64
Date: Sat, 14 May 2005 16:14:14 -0500
User-agent: Mutt/1.5.6i

RHEL [34]/amd64 has /lib64, /usr/lib64, /lib, and /lib64. How do we
convince libtool to search /lib64, /usr/lib64 first? Unfortunately,
the output of gcc --print-search-dirs is:

The /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/../../../ component is
essentially /usr/lib. So, if /usr/lib/ and
/usr/lib64/ are installed, /usr/lib/ will be
selected. Must I LDFLAGS="-L/usr/lib64"?

Moreoever, libtool.m4 has (from the 2.0 branch):
  # Append contents to the search path
  if test -f /etc/; then
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); 
skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ | $SED -e 
's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"

Why force /lib /usr/lib first here?

albert chin (address@hidden)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]