summaryrefslogtreecommitdiff
path: root/graphics/nvidia-texture-tools/files/patch-cmake_OptimalOptions.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/nvidia-texture-tools/files/patch-cmake_OptimalOptions.cmake')
-rw-r--r--graphics/nvidia-texture-tools/files/patch-cmake_OptimalOptions.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/nvidia-texture-tools/files/patch-cmake_OptimalOptions.cmake b/graphics/nvidia-texture-tools/files/patch-cmake_OptimalOptions.cmake
new file mode 100644
index 000000000000..3e9cc9d64463
--- /dev/null
+++ b/graphics/nvidia-texture-tools/files/patch-cmake_OptimalOptions.cmake
@@ -0,0 +1,10 @@
+--- cmake/OptimalOptions.cmake.orig 2020-08-24 06:27:21 UTC
++++ cmake/OptimalOptions.cmake
+@@ -1,7 +1,6 @@
+
+ # Set optimal options for gcc:
+ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+ ENDIF()
+