On Wed, Jan 18, 2006 at 07:12:47PM +0100, Jean Delvare wrote:
> Hi Jan, Sam,
>
> > Anyway, SUSE 10.0/i386:
> >
> > 14:20 takeshi:~ > l /dev/null
> > crw-rw-rw- 1 root root 1, 3 Sep 9 18:40 /dev/null
> > 14:20 takeshi:~ > echo 'main(){}' | gcc -xc -c - -o /dev/null
> > 14:21 takeshi:~ > echo $?
> > 0
> > 14:21 takeshi:~ > l /dev/null
> > crw-rw-rw- 1 root root 1, 3 Sep 9 18:40 /dev/null
> >
> >
> > 14:22 takeshi:/home/jengelh # echo 'main(){}' | gcc -xc -c - -o /dev/null
> > 14:22 takeshi:/home/jengelh # echo $?
> > 0
> > 14:22 takeshi:/home/jengelh # l /dev/null
> > crw-rw-rw- 1 root root 1, 3 Sep 9 18:40 /dev/null
> >
> > So what is (not) happening?
>
> This ain't exactly the same command Sam had me test earlier today. This
> one breaks my /dev/null:
>
> echo "main() {}" | gcc -xc - -o /dev/null
>
> But this one doesn't:
>
> echo 'main() {}' | gcc -xc -c - -o /dev/null
Right.
-c tell gcc not to link.
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.
So in contradiction to the cc-option case where we chank for an option,
we need to perform the link step here.
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]