[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem
From: |
Kate Minola |
Subject: |
Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem |
Date: |
Fri, 15 Sep 2006 11:52:11 -0400 |
On 9/14/06, Peter O'Gorman <address@hidden> wrote:
but I need to return to square 1 for an actual problem solution.
Again, may I suggest something like
gcc -print-search-dirs | tail -1 |
awk -v multi=`gcc -print-multi-os-directory` '{
n = split($0, c, ":");
for (i = 2; i <= n; i++) {
if (i == 2) {
str = substr(c[i],3,length(c[i])-2);
} else {
str= c[i];
}
m = split(str, d, "/");
if (d[m-1] == "..") {
m--;
count = 1;
while (d[m-1] == "..") {
m--;
count += 1;
}
m -= count;
}
printf "-L/";
for (j = 2; j < m; j ++) {
printf "%s/", d[j];
}
if (length(multi) > 1) {
if (d[m-1] == "lib") {
printf "%s", multi;
}
}
printf " ";
}
}'
Kate Minola
University of Maryland, College Park
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, (continued)
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Ralf Wildenhues, 2006/09/13
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Peter O'Gorman, 2006/09/13
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Ralf Wildenhues, 2006/09/13
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Peter O'Gorman, 2006/09/13
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Ralf Wildenhues, 2006/09/13
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Peter Breitenlohner, 2006/09/13
- Re: Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Kate Minola, 2006/09/13
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Peter O'Gorman, 2006/09/14
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Ralf Wildenhues, 2006/09/14
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Peter O'Gorman, 2006/09/14
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem,
Kate Minola <=
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Kate Minola, 2006/09/20
- Re: AC_LIBTOOL_SYS_DYNAMIC_LINKER "gcc -print-search-dirs" problem, Peter O'Gorman, 2006/09/21