From 655efac602cfb9f2900dfcd7e26dea01e938c374 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 20 Aug 2007 08:58:24 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/mgt_vcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5