From: Steven Rostedt <rostedt@goodmis.org>
To: Alan Mikhak <amikhak@wirelessfabric.com>
Cc: ykaradzhov@vmware.com,
Linux Trace Devel <linux-trace-devel@vger.kernel.org>
Subject: Re: [PATCH] Compile kernel-shark with -fPIC option
Date: Thu, 25 Apr 2019 12:34:36 -0400 [thread overview]
Message-ID: <20190425123436.4973bfa4@gandalf.local.home> (raw)
In-Reply-To: <1556209669-2610-1-git-send-email-amikhak@wirelessfabric.com>
Hi Alan,
Thanks for the patch. FYI, it's best to also Cc
linux-trace-devel@vger.kernel.org when sending patches.
On Thu, 25 Apr 2019 09:27:49 -0700
Alan Mikhak <amikhak@wirelessfabric.com> wrote:
> From: Alan Mikhak <amikhak@wirelessfabric.com>
>
> Resolve linker relocation error when linking libkshark.so.0.9.8
> with cmake on armv7l, aarch64, and some x86_64 platforms.
>
> Ubuntu 16.04 (xenial) on x86_64:
> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
> making a shared object; recompile with -fPIC
>
> Debian 9.8 (stretch) on x86_64:
> relocation R_X86_64_TPOFF32 against `seq' can not be used when making
> a shared object; recompile with -fPIC
>
> Signed-off-by: Alan Mikhak <amikhak@wirelessfabric.com>
> ---
> kernel-shark/CMakeLists.txt | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel-shark/CMakeLists.txt b/kernel-shark/CMakeLists.txt
> index 1aee858..ac17642 100644
> --- a/kernel-shark/CMakeLists.txt
> +++ b/kernel-shark/CMakeLists.txt
> @@ -32,8 +32,8 @@ endif (Qt5Widgets_FOUND)
> set(LIBRARY_OUTPUT_PATH "${KS_DIR}/lib")
> set(EXECUTABLE_OUTPUT_PATH "${KS_DIR}/bin")
>
> -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g -pthread")
> -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11 -pthread")
> +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g -pthread -fPIC")
> +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -g -std=c++11 -pthread -fPIC")
Yordan,
Can you take a look at this patch and add a Reviewed-by tag if you are
good with it?
-- Steve
>
> if(NOT _INSTALL_PREFIX)
> set(_INSTALL_PREFIX "/usr/local")
next parent reply other threads:[~2019-04-25 16:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1556209669-2610-1-git-send-email-amikhak@wirelessfabric.com>
2019-04-25 16:34 ` Steven Rostedt [this message]
2019-05-08 1:38 ` [PATCH] Compile kernel-shark with -fPIC option Steven Rostedt
2019-05-08 8:51 ` Yordan Karadzhov
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=20190425123436.4973bfa4@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=amikhak@wirelessfabric.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=ykaradzhov@vmware.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).