You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ig...@apache.org on 2012/05/19 10:55:43 UTC

[2/2] git commit: FreeBSD 9.0+ comes with clang. Add support to build ATS with it.

FreeBSD 9.0+ comes with clang. Add support to build ATS with it.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/d42a4e0d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/d42a4e0d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/d42a4e0d

Branch: refs/heads/master
Commit: d42a4e0db5825beae57494f52244ddfd02e770c4
Parents: 9c5bac5
Author: Igor Galić <i....@brainsware.org>
Authored: Sat May 19 10:53:53 2012 +0200
Committer: Igor Galić <i....@brainsware.org>
Committed: Sat May 19 10:53:53 2012 +0200

----------------------------------------------------------------------
 configure.ac |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/d42a4e0d/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index e191848..9d68bae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -622,10 +622,20 @@ case $host_os in
     TS_ADDTO(LDFLAGS, [-L/opt/local/lib])
     ;; # darwin*)
   freebsd*|kfreebsd*)
-    common_opt="-pipe -Wall -Werror"
-    debug_opt="-ggdb3 $common_opt"
-    release_opt="-g $common_opt $optimizing_flags -feliminate-unused-debug-symbols -fno-strict-aliasing"
-    cxx_opt="-Wno-invalid-offsetof"
+    case $base_cc in
+    clang)
+      common_opt="-pipe -Wall -Werror -Qunused-arguments"
+      debug_opt="-ggdb3 $common_opt"
+      release_opt="-g $common_opt $optimizing_flags -feliminate-unused-debug-symbols -fno-strict-aliasing"
+      cxx_opt="-Wno-invalid-offsetof -Qunused-arguments"
+      ;;
+    *) # gcc
+      common_opt="-pipe -Wall -Werror"
+      debug_opt="-ggdb3 $common_opt"
+      release_opt="-g $common_opt $optimizing_flags -feliminate-unused-debug-symbols -fno-strict-aliasing"
+      cxx_opt="-Wno-invalid-offsetof"
+      ;;
+    esac
     TS_ADDTO(LDFLAGS, [-L/usr/local/lib])
     ;;
   solaris*)