From: phk Date: Mon, 20 Aug 2007 08:58:24 +0000 (+0000) Subject: Isolate the C-compiler even more with env -i and -nostdinc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=655efac602cfb9f2900dfcd7e26dea01e938c374;p=varnish Isolate the C-compiler even more with env -i and -nostdinc git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1870 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_vcc.c b/varnish-cache/bin/varnishd/mgt_vcc.c index b25c2b8d..efe95949 100644 --- a/varnish-cache/bin/varnishd/mgt_vcc.c +++ b/varnish-cache/bin/varnishd/mgt_vcc.c @@ -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);