freerdp-armfp.patch 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. From 2355b54f8516a6e1c600df8f26ac7d56916bfd99 Mon Sep 17 00:00:00 2001
  2. From: Mike Gilbert <floppym@gentoo.org>
  3. Date: Fri, 1 May 2015 17:35:21 -0400
  4. Subject: [PATCH] Remove the ARM_FP_ABI option
  5. It's unclear why this option would be necessary, and it causes problems
  6. when people do not match it to their toolchain and CFLAGS.
  7. To set the float abi, either use a toolchain with an appropriate default
  8. or set the float-abi option in the CFLAGS environment variable.
  9. This should resolve #2586.
  10. ---
  11. cmake/ConfigOptions.cmake | 6 ------
  12. libfreerdp/CMakeLists.txt | 4 ++--
  13. packaging/deb/freerdp-nightly/rules | 7 -------
  14. 3 files changed, 2 insertions(+), 15 deletions(-)
  15. diff --git a/cmake/ConfigOptions.cmake b/cmake/ConfigOptions.cmake
  16. index b51a46b..cef6ba6 100644
  17. --- a/cmake/ConfigOptions.cmake
  18. +++ b/cmake/ConfigOptions.cmake
  19. @@ -29,12 +29,6 @@ if(TARGET_ARCH MATCHES "ARM")
  20. else()
  21. option(WITH_NEON "Enable NEON optimization." OFF)
  22. endif()
  23. - if (NOT DEFINED ARM_FP_ABI)
  24. - set(ARM_FP_ABI "softfp" CACHE STRING "Floating point ABI to use on arm")
  25. - else()
  26. - set(ARM_FP_ABI ${ARM_FP_API} CACHE STRING "Floating point ABI to use on arm")
  27. - endif()
  28. - mark_as_advanced(ARM_FP_ABI)
  29. else()
  30. if(NOT APPLE)
  31. option(WITH_IPP "Use Intel Performance Primitives." OFF)
  32. diff --git a/libfreerdp/CMakeLists.txt b/libfreerdp/CMakeLists.txt
  33. index a1cbd9d..112b75a 100644
  34. --- a/libfreerdp/CMakeLists.txt
  35. +++ b/libfreerdp/CMakeLists.txt
  36. @@ -156,7 +156,7 @@ if(WITH_SSE2)
  37. endif()
  38. if(WITH_NEON)
  39. - set_source_files_properties(${CODEC_NEON_SRCS} PROPERTIES COMPILE_FLAGS "-mfpu=neon -mfloat-abi=${ARM_FP_ABI} -Wno-unused-variable" )
  40. + set_source_files_properties(${CODEC_NEON_SRCS} PROPERTIES COMPILE_FLAGS "-mfpu=neon -Wno-unused-variable" )
  41. set(CODEC_SRCS ${CODEC_SRCS} ${CODEC_NEON_SRCS})
  42. endif()
  43. @@ -236,7 +236,7 @@ if(WITH_SSE2)
  44. endif()
  45. elseif(WITH_NEON)
  46. if(CMAKE_COMPILER_IS_GNUCC)
  47. - set(OPTIMIZATION "${OPTIMIZATION} -mfpu=neon -mfloat-abi=${ARM_FP_ABI}")
  48. + set(OPTIMIZATION "${OPTIMIZATION} -mfpu=neon")
  49. endif()
  50. # TODO: Add MSVC equivalent
  51. endif()
  52. diff --git a/packaging/deb/freerdp-nightly/rules b/packaging/deb/freerdp-nightly/rules
  53. index 4366f63..44ceb56 100755
  54. --- a/packaging/deb/freerdp-nightly/rules
  55. +++ b/packaging/deb/freerdp-nightly/rules
  56. @@ -1,11 +1,5 @@
  57. #!/usr/bin/make -f
  58. -DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
  59. -ifneq (,$(filter armhf,$(DEB_HOST_ARCH)))
  60. -ARM_FLOAT_ABI = -DARM_FP_ABI=hard
  61. -else
  62. -ARM_FLOAT_ABI =
  63. -endif
  64. NULL =
  65. DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=FALSE \
  66. @@ -26,7 +20,6 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=FALSE \
  67. -DCMAKE_INSTALL_PREFIX=/opt/freerdp-nightly/ \
  68. -DCMAKE_INSTALL_INCLUDEDIR=include \
  69. -DCMAKE_INSTALL_LIBDIR=lib \
  70. - $(ARM_FLOAT_ABI) \
  71. $(NULL)
  72. %:
  73. --
  74. 2.5.0