[ogre-pagedgeometry] Another try at the carriage return fix.

Bruno Wolff III bruno at fedoraproject.org
Fri Jan 14 19:07:17 UTC 2011


commit a0c3a9c2baaa10c39af8a266d6566d5543b06a38
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Fri Jan 14 13:04:08 2011 -0600

    Another try at the carriage return fix.

 pagedgeometry-no-force-static.patch |   96 +++++++++++++++++-----------------
 1 files changed, 48 insertions(+), 48 deletions(-)
---
diff --git a/pagedgeometry-no-force-static.patch b/pagedgeometry-no-force-static.patch
index cb61fb3..1aa9e83 100644
--- a/pagedgeometry-no-force-static.patch
+++ b/pagedgeometry-no-force-static.patch
@@ -1,55 +1,55 @@
 diff -up pagedGeometry-1.1.0/CMakeLists.txt.shared pagedGeometry-1.1.0/CMakeLists.txt
 --- pagedGeometry-1.1.0/CMakeLists.txt.shared	2010-04-09 02:19:20.000000000 -0400
 +++ pagedGeometry-1.1.0/CMakeLists.txt	2010-12-21 15:31:57.775241999 -0500
-@@ -29,7 +29,7 @@ project(PagedGeometry)
- include(CMakeDependenciesConfig.txt)
- 
- # build static libs by default
--SET(BUILD_SHARED_LIBS OFF)
-+SET(BUILD_SHARED_LIBS ON)
- 
- # setup paths
- SET(RUNTIME_OUTPUT_DIRECTORY "${PagedGeometry_SOURCE_DIR}/bin/")
-@@ -114,19 +114,19 @@ IF(NOT WIN32)
- endif()
- 
- # Set visibility options if available
--IF(NOT WIN32)
--	CHECK_C_SOURCE_COMPILES("int foo() __attribute__((destructor));
--								int main() {return 0;}" HAVE_GCC_DESTRUCTOR)
--
--	CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_SWITCH)
--	IF(HAVE_VISIBILITY_SWITCH)
--		CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"default\")));
--									int main() {return 0;}" HAVE_GCC_VISIBILITY)
--		IF(HAVE_GCC_VISIBILITY)
--			ADD_DEFINITIONS(-fvisibility=hidden -DHAVE_GCC_VISIBILITY)
--		ENDIF()
--	ENDIF()
--ENDIF()
-+# IF(NOT WIN32)
-+#	CHECK_C_SOURCE_COMPILES("int foo() __attribute__((destructor));
-+#								int main() {return 0;}" HAVE_GCC_DESTRUCTOR)
-+#
-+#	CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_SWITCH)
-+#	IF(HAVE_VISIBILITY_SWITCH)
-+#		CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"default\")));
-+#									int main() {return 0;}" HAVE_GCC_VISIBILITY)
-+#		IF(HAVE_GCC_VISIBILITY)
-+#			ADD_DEFINITIONS(-fvisibility=hidden -DHAVE_GCC_VISIBILITY)
-+#		ENDIF()
-+#	ENDIF()
-+# ENDIF()
- 
- 
- # now add the directories
-@@ -134,4 +134,4 @@ add_subdirectory(source)
- 
- if(PAGEDGEOMETRY_BUILD_SAMPLES)
- 	add_subdirectory(examples)
+@@ -29,7 +29,7 @@ project(PagedGeometry)
+ include(CMakeDependenciesConfig.txt)
+ 
+ # build static libs by default
+-SET(BUILD_SHARED_LIBS OFF)
++SET(BUILD_SHARED_LIBS ON)
+ 
+ # setup paths
+ SET(RUNTIME_OUTPUT_DIRECTORY "${PagedGeometry_SOURCE_DIR}/bin/")
+@@ -114,19 +114,19 @@ IF(NOT WIN32)
+ endif()
+ 
+ # Set visibility options if available
+-IF(NOT WIN32)
+-	CHECK_C_SOURCE_COMPILES("int foo() __attribute__((destructor));
+-								int main() {return 0;}" HAVE_GCC_DESTRUCTOR)
+-
+-	CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_SWITCH)
+-	IF(HAVE_VISIBILITY_SWITCH)
+-		CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"default\")));
+-									int main() {return 0;}" HAVE_GCC_VISIBILITY)
+-		IF(HAVE_GCC_VISIBILITY)
+-			ADD_DEFINITIONS(-fvisibility=hidden -DHAVE_GCC_VISIBILITY)
+-		ENDIF()
+-	ENDIF()
+-ENDIF()
++# IF(NOT WIN32)
++#	CHECK_C_SOURCE_COMPILES("int foo() __attribute__((destructor));
++#								int main() {return 0;}" HAVE_GCC_DESTRUCTOR)
++#
++#	CHECK_C_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_SWITCH)
++#	IF(HAVE_VISIBILITY_SWITCH)
++#		CHECK_C_SOURCE_COMPILES("int foo() __attribute__((visibility(\"default\")));
++#									int main() {return 0;}" HAVE_GCC_VISIBILITY)
++#		IF(HAVE_GCC_VISIBILITY)
++#			ADD_DEFINITIONS(-fvisibility=hidden -DHAVE_GCC_VISIBILITY)
++#		ENDIF()
++#	ENDIF()
++# ENDIF()
+ 
+ 
+ # now add the directories
+@@ -134,4 +134,4 @@ add_subdirectory(source)
+ 
+ if(PAGEDGEOMETRY_BUILD_SAMPLES)
+ 	add_subdirectory(examples)
 -endif(PAGEDGEOMETRY_BUILD_SAMPLES)
-\ No newline at end of file
-+endif(PAGEDGEOMETRY_BUILD_SAMPLES)
+\ No newline at end of file
++endif(PAGEDGEOMETRY_BUILD_SAMPLES)
 diff -up pagedGeometry-1.1.0/source/CMakeLists.txt.shared pagedGeometry-1.1.0/source/CMakeLists.txt
 --- pagedGeometry-1.1.0/source/CMakeLists.txt.shared	2010-04-09 01:59:14.000000000 -0400
 +++ pagedGeometry-1.1.0/source/CMakeLists.txt	2010-12-21 15:31:13.510241999 -0500


More information about the scm-commits mailing list