[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52334] trunk/lib/darwin-9.x.universal/osl /osx_osl_compile.patch: OSX/oslupdate osl compile.pach

jens verwiebe info at jensverwiebe.de
Sun Nov 18 16:23:58 CET 2012


Revision: 52334
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52334
Author:   jensverwiebe
Date:     2012-11-18 15:23:57 +0000 (Sun, 18 Nov 2012)
Log Message:
-----------
OSX/oslupdate osl compile.pach

Modified Paths:
--------------
    trunk/lib/darwin-9.x.universal/osl/osx_osl_compile.patch

Modified: trunk/lib/darwin-9.x.universal/osl/osx_osl_compile.patch
===================================================================
--- trunk/lib/darwin-9.x.universal/osl/osx_osl_compile.patch	2012-11-18 15:02:09 UTC (rev 52333)
+++ trunk/lib/darwin-9.x.universal/osl/osx_osl_compile.patch	2012-11-18 15:23:57 UTC (rev 52334)
@@ -1,5 +1,5 @@
 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index 3dcf2c7..bafefaf 100644
+index 3dcf2c7..491de9d 100644
 --- a/src/CMakeLists.txt
 +++ b/src/CMakeLists.txt
 @@ -12,6 +12,39 @@ set (OSO_FILE_VERSION_MINOR 0)
@@ -42,6 +42,26 @@
  
  cmake_minimum_required (VERSION 2.6)
  if (NOT CMAKE_VERSION VERSION_LESS 2.8.4)
+@@ -60,6 +93,10 @@ endif ()
+ ##   extending LLVM ones will cause linker errors (unless you
+ ##   rebuild LLVM with rtti enabled)
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti" )
++## Force the deployment target to really work
++set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5" )
++set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5" )
++add_definitions ("-mmacosx-version-min=10.5")
+ 
+ # For gcc < 4.3, Boost needs some extra help detecting that we've
+ # disabled RTTI.
+@@ -92,7 +129,7 @@ if (CMAKE_COMPILER_IS_CLANG OR CMAKE_COMPILER_IS_GNUCC)
+         set (VISIBILITY_MAP_COMMAND "-Wl,--version-script=${PROJECT_SOURCE_DIR}/liboslexec/liboslexec.map")
+     endif ()
+ endif ()
+-
++add_definitions ("-mmacosx-version-min=10.5")
+ set (USE_TBB ON CACHE BOOL "Use TBB if needed")
+ if (WIN32)
+     set (USE_BOOST_WAVE ON CACHE BOOL "Use Boost Wave as preprocessor")
 diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake
 index a5d0f1a..299fe56 100644
 --- a/src/cmake/externalpackages.cmake
@@ -55,6 +75,21 @@
                 PATHS ${LLVM_LIB_DIR})
  message (STATUS "LLVM version  = ${LLVM_VERSION}")
  message (STATUS "LLVM dir      = ${LLVM_DIRECTORY}")
+diff --git a/src/liboslcomp/oslcomp.cpp b/src/liboslcomp/oslcomp.cpp
+index 129766b..c085a3b 100644
+--- a/src/liboslcomp/oslcomp.cpp
++++ b/src/liboslcomp/oslcomp.cpp
+@@ -244,8 +244,8 @@ preprocess (const std::string &filename,
+     // Default /usr/bin/cpp on pre-Lion Apple is very bare bones,
+     // doesn't seem to support all the preprocessor directives (like #
+     // and ##), but the explicit gcc 4.2 one does.
+-    if (OIIO::Filesystem::exists ("/usr/bin/cpp-4.2"))
+-        cppcommand = "/usr/bin/cpp-4.2";
++    if (OIIO::Filesystem::exists ("/usr/bin/llvm-cpp-4.2"))
++        cppcommand = "/usr/bin/llvm-cpp-4.2";
+ #endif
+ 
+     cppcommand += std::string (" -xc -nostdinc ");
 diff --git a/src/liboslcomp/symtab.h b/src/liboslcomp/symtab.h
 index ffebb8a..8bf2c46 100644
 --- a/src/liboslcomp/symtab.h




More information about the Bf-blender-cvs mailing list