From: G.E. Date: Wed, 17 Apr 2024 08:33:00 +0000 (+0300) Subject: the rpath hack is only needed on arm X-Git-Tag: vectorscan/5.4.12^2~65^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b37add4d87f223cc40e04d331e96beeb98f2d30;p=thirdparty%2Fvectorscan.git the rpath hack is only needed on arm --- diff --git a/cmake/osdetection.cmake b/cmake/osdetection.cmake index 3369447a..8bfbd3bd 100644 --- a/cmake/osdetection.cmake +++ b/cmake/osdetection.cmake @@ -4,12 +4,14 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Linux") if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") set(FREEBSD true) - set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) - #FIXME: find a nicer and more general way of doing this - if(CMAKE_C_COMPILER MATCHES "/usr/local/bin/gcc12") - set(CMAKE_BUILD_RPATH "/usr/local/lib/gcc12") - elseif(CMAKE_C_COMPILER MATCHES "/usr/local/bin/gcc13") - set(CMAKE_BUILD_RPATH "/usr/local/lib/gcc13") + if(ARCH_AARCH64) + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + #FIXME: find a nicer and more general way of doing this + if(CMAKE_C_COMPILER MATCHES "/usr/local/bin/gcc12") + set(CMAKE_BUILD_RPATH "/usr/local/lib/gcc12") + elseif(CMAKE_C_COMPILER MATCHES "/usr/local/bin/gcc13") + set(CMAKE_BUILD_RPATH "/usr/local/lib/gcc13") + endif() endif() endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")