This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Search path directory limit
- From: Niklaus <niklaus at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 19 Dec 2008 19:47:58 +0530
- Subject: Search path directory limit
hi,
The below program takes a long time to compile (in minutes). I 've
these small indiviudal .c/.cpp files which i have to compile and
execute. The problem is with rouge "/dev/random or /dev/urandom".
Solutions like limit the process execution time of gcc is not
appealing.
Can we restrict the paths from which gcc includes the header files.
Can we tell gcc on a command line parameters/makefile to not include
anything from "/dev" ? If possible how to do it ?
Removing read access on those devices are not possible.
$ cat a.c
#include "/dev/random"
#include<stdio.h>
int main()
{
return 0;
}
regards, Nik