]> err.no Git - varnish/commitdiff
Isolate the C-compiler even more with env -i and -nostdinc
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 08:58:24 +0000 (08:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 08:58:24 +0000 (08:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1870 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_vcc.c

index b25c2b8de4ac29a18a26e5e4234001fa4d7b3cb0..efe959496eaef6e292dc18d2b2dfe97640851cde 100644 (file)
@@ -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);