Also, ignore the result of dlclose().
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1721
d4fa192b-c00b-0410-8231-
f00ffab90ce4
/* Attempt to open a pipe to the system C-compiler */
len = snprintf(buf, sizeof buf,
"ln -f %s _.c ;" /* XXX: for debugging */
+#ifdef __APPLE__
+ "exec cc -dynamiclib -Wl,-flat_namespace,-undefined,suppress -o %s -x c - < %s 2>&1",
+#else
"exec cc -fpic -shared -Wl,-x -o %s -x c - < %s 2>&1",
+#endif
sf, of, sf);
xxxassert(len < sizeof buf);
free(of);
of = NULL;
} else
- AZ(dlclose(p));
+ (void)dlclose(p);
/* clean up and return */
unlink(sf);