]> err.no Git - varnish/commitdiff
Add compiler command for Solaris.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 26 May 2008 08:36:18 +0000 (08:36 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 26 May 2008 08:36:18 +0000 (08:36 +0000)
Closes ticket #239

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2636 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_param.c

index 0ab4ea03e6af3d6cd4205d9d7fbea75a612bc7c7..eb7ad66135f7389927c4a179604138f2f41850fe 100644 (file)
@@ -616,7 +616,9 @@ static const struct parspec parspec[] = {
                MUST_RELOAD,
 #ifdef __APPLE__
                "exec cc -dynamiclib -Wl,-undefined,dynamic_lookup -o %o %s"
-#else
+#elseif defined(__SOLARIS__)
+               "exec cc -shared -fpic -c %o %s"
+#else /* default: GCC on Linux & FreeBSD */
                "exec cc -fpic -shared -Wl,-x -o %o %s"
 #endif
                , NULL },