diff options
author | Vlad Petrov | 2019-09-29 00:07:11 +0300 |
---|---|---|
committer | Vlad Petrov | 2019-09-29 00:11:50 +0300 |
commit | 59b29156e6056c17c6fe6ef3214365b932f7f2a2 (patch) | |
tree | e738eac4e759a8b744ef5ca0601701b7e3e45a65 /1008_gcc-fPIC-on-arm64.patch | |
download | aur-59b29156e6056c17c6fe6ef3214365b932f7f2a2.tar.gz |
beautify internal package
Diffstat (limited to '1008_gcc-fPIC-on-arm64.patch')
-rw-r--r-- | 1008_gcc-fPIC-on-arm64.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1008_gcc-fPIC-on-arm64.patch b/1008_gcc-fPIC-on-arm64.patch new file mode 100644 index 000000000000..c79587c9e18d --- /dev/null +++ b/1008_gcc-fPIC-on-arm64.patch @@ -0,0 +1,15 @@ +Description: CPU types arm64 and armhf need to be linked with -fPIC. +Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -118,6 +118,9 @@ + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=i686") + endif() + endif() ++ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") ++ endif() + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") + CHECK_C_COMPILER_FLAG (-Wno-unused-result Wno-unused-result) + if(Wno-unused-result) |