[asterisk-scf-commits] asterisk-scf/release/cmake.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Feb 7 11:44:06 CST 2011
branch "master" has been updated
via 639375c8195ee691db95dfa038de828b0a8bc08d (commit)
from 594a2ff1a1acac8329b3f4c528ea6a2595db4696 (commit)
Summary of changes:
AsteriskSCF.cmake | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 639375c8195ee691db95dfa038de828b0a8bc08d
Author: David M. Lee <dlee at digium.com>
Date: Mon Feb 7 11:43:16 2011 -0600
Partial fix for Solaris build.
Solaris requires the -pthreads option for compilation. This doesn't fix
all of the problems, but at least it's better.
diff --git a/AsteriskSCF.cmake b/AsteriskSCF.cmake
index 08a29a6..d6f0e55 100644
--- a/AsteriskSCF.cmake
+++ b/AsteriskSCF.cmake
@@ -243,6 +243,10 @@ function(asterisk_scf_project NAME ICE_VERSION)
list(APPEND cxx_flags_profile "-ftest-coverage" "-fprofile-arcs")
endif()
+ if(CMAKE_SYSTEM MATCHES "SunOS.*")
+ list(APPEND cxx_flags "-pthreads")
+ endif()
+
append_to_var(CMAKE_C_FLAGS ${c_flags})
append_to_var(CMAKE_C_FLAGS_DEBUG ${c_flags_debug})
append_to_var(CMAKE_C_FLAGS_PROFILE ${c_flags_profile} ${c_flags_debug})
-----------------------------------------------------------------------
--
asterisk-scf/release/cmake.git
More information about the asterisk-scf-commits
mailing list