Re: Linux 2.6.16-rc1

From: Bryan O'Sullivan
Date: Wed Jan 18 2006 - 15:53:19 EST


On Wed, 2006-01-18 at 21:32 +0100, Sam Ravnborg wrote:

> But in the lxdialog case we need to execute the link step, because
> what we really try to do is to check if gcc can find a specific
> library in the search path.

Will -print-file-name not do the trick for you?

$ gcc -print-file-name=libcurses.so | grep -q /
$ echo $?
0
$ gcc -print-file-name=libfoobar.a | grep -q /
$ echo $?
1

<b

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/