Commit e7c0c96b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Isolate the C-compiler even more with env -i and -nostdinc


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1870 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 294a5be5
......@@ -184,7 +184,7 @@ mgt_CallCc(const char *source, struct vsb *sb)
#ifdef __APPLE__
"exec cc -dynamiclib -Wl,-undefined,dynamic_lookup -o %s -x c - < %s 2>&1",
#else
"exec cc -fpic -shared -Wl,-x -o %s -x c - < %s 2>&1",
"env -i cc -nostdinc -fpic -shared -Wl,-x -o %s -x c - < %s 2>&1",
#endif
sf, of, sf);
xxxassert(len < sizeof buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment