Commit ec1b1498 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge branch 'cflags_for_vcl'


git-svn-id: http://www.varnish-cache.org/svn/trunk@3238 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b42f0167
...@@ -326,18 +326,22 @@ AC_ARG_ENABLE(werror, ...@@ -326,18 +326,22 @@ AC_ARG_ENABLE(werror,
# Command line for compiling VCL code. I wish there were a simple way # Command line for compiling VCL code. I wish there were a simple way
# to figure this out dynamically without introducing a run-time # to figure this out dynamically without introducing a run-time
# dependency on libtool. # dependency on libtool.
case $host in AC_ARG_VAR([VCC_CC], [C compiler command line for VCL code])
*-*-solaris*) if test "$ac_cv_env_VCC_CC_set" = "set"; then
VCC_CC="cc -Kpic ${CFLAGS} -G -o %o %s" VCC_CC="$ac_cv_env_VCC_CC_value"
;; else
*-*-darwin*) case $host in
VCC_CC="exec cc -dynamiclib -Wl,-undefined,dynamic_lookup ${CFLAGS} -o %o %s" *-*-solaris*)
;; VCC_CC="cc -Kpic -G -o %o %s"
*) ;;
VCC_CC="exec cc -fpic -shared -Wl,-x ${CFLAGS} -o %o %s" *-*-darwin*)
;; VCC_CC="exec cc -dynamiclib -Wl,-undefined,dynamic_lookup -o %o %s"
esac ;;
*)
VCC_CC="exec cc -fpic -shared -Wl,-x -o %o %s"
;;
esac
fi
AC_DEFINE_UNQUOTED([VCC_CC],"$VCC_CC",[C compiler command line for VCL code]) AC_DEFINE_UNQUOTED([VCC_CC],"$VCC_CC",[C compiler command line for VCL code])
# Use jemalloc on Linux # Use jemalloc on Linux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment