From 4c04b9c63e97e5c08482335691dce968bdca2729 Mon Sep 17 00:00:00 2001
From: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
Date: Thu, 2 May 2024 12:14:08 +0000
Subject: [PATCH] link directories

Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
---
 lib/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index c24b98350..d2667395a 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -128,10 +128,11 @@ if(WITH_FPGA)
     list(APPEND LIBRARIES villas-fpga)
 endif()
 
+link_directories(/app/lib/aarch64-linux-gnu /usr/lib/aarch64-linux-gnu)
 add_library(villas SHARED ${LIB_SRC})
 target_include_directories(villas PUBLIC ${INCLUDE_DIRS})
 target_link_libraries(villas PUBLIC ${LIBRARIES})
-target_link_libraries(villas PRIVATE -Wl,-rpath,--whole-archive ${WHOLE_ARCHIVES} -Wl,-rpath,--no-whole-archive)
+target_link_libraries(villas PRIVATE -Wl,--whole-archive ${WHOLE_ARCHIVES} -Wl,--no-whole-archive)
 
 set_target_properties(villas PROPERTIES
     VERSION ${CMAKE_PROJECT_VERSION}