beignet-1.2.0_no-hardcoded-cflags.patch 721 B

12345678910111213
  1. --- a/CMakeLists.txt 2016-08-30 10:06:31.000000000 +0000
  2. +++ b/CMakeLists.txt 2016-09-16 06:55:28.975772954 +0000
  3. @@ -89,8 +89,7 @@
  4. elseif (COMPILER STREQUAL "ICC")
  5. set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -wd2928 -Wall -fPIC -fstrict-aliasing -fp-model fast -msse4.1 -Wl,-E")
  6. endif ()
  7. -set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_C_CXX_FLAGS} -std=c++0x -Wno-invalid-offsetof")
  8. -set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_CXX_FLAGS}")
  9. +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wno-invalid-offsetof")
  10. set (CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DGBE_DEBUG=1")
  11. set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
  12. set (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -DGBE_DEBUG=0")