We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccd8df8 commit a55c1e9Copy full SHA for a55c1e9
Makefile
@@ -290,6 +290,7 @@ endif
290
# some memory allocation are available on Linux through GNU extensions in libc
291
ifeq ($(UNAME_S),Linux)
292
MK_CPPFLAGS += -D_GNU_SOURCE
293
+ MK_LDFLAGS += -ldl
294
endif
295
296
# RLIMIT_MEMLOCK came in BSD, is not specified in POSIX.1,
ggml/src/CMakeLists.txt
@@ -230,6 +230,10 @@ add_library(ggml
230
231
target_link_libraries(ggml PUBLIC ggml-base)
232
233
+if (CMAKE_SYSTEM_NAME MATCHES "Linux")
234
+ target_link_libraries(ggml PRIVATE dl)
235
+endif()
236
+
237
function(ggml_add_backend backend)
238
string(TOUPPER "GGML_${backend}" backend_id)
239
if (${backend_id})
0 commit comments