All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qais Yousef <qais.yousef@arm.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH 4/4] clang: Fix undefined reference to dladdr error
Date: Tue, 29 Sep 2020 11:26:18 +0100	[thread overview]
Message-ID: <20200929102618.28571-5-qais.yousef@arm.com> (raw)
In-Reply-To: <20200929102618.28571-1-qais.yousef@arm.com>

For some reason the cmake::find_library() can't detect the path to dl,
so we end up not including the right library when linking, hence the
error above.

Could be a hack/workaround to the real problem.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
---
 .../0001-fix-undefined-reference-to-dladdr.patch    | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 package/clang/0001-fix-undefined-reference-to-dladdr.patch

diff --git a/package/clang/0001-fix-undefined-reference-to-dladdr.patch b/package/clang/0001-fix-undefined-reference-to-dladdr.patch
new file mode 100644
index 0000000000..b28c6a463c
--- /dev/null
+++ b/package/clang/0001-fix-undefined-reference-to-dladdr.patch
@@ -0,0 +1,13 @@
+--- ./tools/libclang/CMakeLists.txt.old	2020-08-02 10:17:54.995944248 +0100
++++ ./tools/libclang/CMakeLists.txt	2020-08-02 10:20:56.150147251 +0100
+@@ -58,10 +58,7 @@
+   endif()
+ endif ()
+ 
+-find_library(DL_LIBRARY_PATH dl)
+-if (DL_LIBRARY_PATH)
+   list(APPEND LIBS dl)
+-endif()
+ 
+ option(LIBCLANG_BUILD_STATIC
+   "Build libclang as a static library (in addition to a shared one)" OFF)
-- 
2.17.1

  parent reply	other threads:[~2020-09-29 10:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29 10:26 [Buildroot] [RFC PATCH 0/4] add BCC and bpftrace packages Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 1/4] llvm: Add BPF backend Qais Yousef
2020-09-29 19:35   ` Romain Naour
2020-09-30 14:38     ` Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 2/4] Add BPF Compiler Collection (BCC) Package Qais Yousef
2020-09-29 20:33   ` Romain Naour
2020-10-03 20:39     ` Qais Yousef
2020-09-29 10:26 ` [Buildroot] [RFC PATCH 3/4] Add bpftrace package Qais Yousef
2020-09-29 20:55   ` Romain Naour
2020-10-03 20:56     ` Qais Yousef
2020-10-04 20:10       ` Qais Yousef
2020-10-08 22:31     ` Qais Yousef
2020-09-29 10:26 ` Qais Yousef [this message]
2020-09-29 20:59   ` [Buildroot] [RFC PATCH 4/4] clang: Fix undefined reference to dladdr error Romain Naour
2020-10-03 20:58     ` Qais Yousef
2020-10-04 16:12       ` Qais Yousef
2020-09-29 21:08 ` [Buildroot] [RFC PATCH 0/4] add BCC and bpftrace packages Romain Naour
2020-10-01 20:46   ` Qais Yousef

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200929102618.28571-5-qais.yousef@arm.com \
    --to=qais.yousef@arm.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.