This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]