* [Buildroot] [PATCH v1] package/libevdev: fix static compile
@ 2020-03-10 8:45 Peter Seiderer
2020-03-10 8:56 ` Peter Seiderer
2020-03-22 21:37 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Peter Seiderer @ 2020-03-10 8:45 UTC (permalink / raw)
To: buildroot
Add patch to enable meson static library build (use meson
library() instead of shared_library()).
Fixes:
- http://autobuild.buildroot.net/results/b920ef5a250e7d23223352367ded50bf32bb5688
.../host/bin/arm-linux-gcc -o libevdev.so.2.3.0 'evdev at sha/libevdev_libevdev-uinput.c.o' 'evdev at sha/libevdev_libevdev.c.o' 'evdev at sha/libevdev_libevdev-names.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libevdev.so.2 -Wl,--end-group -Wl,-elf2flt -static -Wl,--version-script,.../build/libevdev-1.9.0/libevdev/libevdev.sym
ld (ld-elf2flt): -shared used without passing a shared library ID
- http://autobuild.buildroot.net/results/dc52a705c7490b722380af7b00ff7c6e172450cf
.../host/bin/x86_64-linux-gcc -o libevdev.so.2.3.0 'evdev at sha/libevdev_libevdev-uinput.c.o' 'evdev at sha/libevdev_libevdev.c.o' 'evdev at sha/libevdev_libevdev-names.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libevdev.so.2 -Wl,--end-group -static -Wl,--version-script,.../build/libevdev-1.9.0/libevdev/libevdev.sym
.../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
.../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC
.../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: final link failed: nonrepresentable section on output
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
...on.build-enable-static-library-build.patch | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 package/libevdev/0003-meson.build-enable-static-library-build.patch
diff --git a/package/libevdev/0003-meson.build-enable-static-library-build.patch b/package/libevdev/0003-meson.build-enable-static-library-build.patch
new file mode 100644
index 0000000000..36722bf9a3
--- /dev/null
+++ b/package/libevdev/0003-meson.build-enable-static-library-build.patch
@@ -0,0 +1,29 @@
+From 0d39ee4958869e9dd7657d6d0528bc4e2461e912 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Tue, 10 Mar 2020 09:35:52 +0100
+Subject: [PATCH] meson.build: enable static library build
+
+Use meson library() instead of shared_library() to enable
+static build.
+
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index a623a90..94224cb 100644
+--- a/meson.build
++++ b/meson.build
+@@ -70,7 +70,7 @@ src_libevdev = [
+
+ mapfile = join_paths(dir_src, 'libevdev.sym')
+ version_flag = '-Wl,--version-script, at 0@'.format(mapfile)
+-lib_libevdev = shared_library('evdev',
++lib_libevdev = library('evdev',
+ src_libevdev,
+ include_directories: [includes_include],
+ dependencies: [],
+--
+2.25.1
+
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v1] package/libevdev: fix static compile
2020-03-10 8:45 [Buildroot] [PATCH v1] package/libevdev: fix static compile Peter Seiderer
@ 2020-03-10 8:56 ` Peter Seiderer
2020-03-22 21:37 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2020-03-10 8:56 UTC (permalink / raw)
To: buildroot
On Tue, 10 Mar 2020 09:45:40 +0100, Peter Seiderer <ps.report@gmx.net> wrote:
> Add patch to enable meson static library build (use meson
> library() instead of shared_library()).
>
> Fixes:
>
> - http://autobuild.buildroot.net/results/b920ef5a250e7d23223352367ded50bf32bb5688
>
> .../host/bin/arm-linux-gcc -o libevdev.so.2.3.0 'evdev at sha/libevdev_libevdev-uinput.c.o' 'evdev at sha/libevdev_libevdev.c.o' 'evdev at sha/libevdev_libevdev-names.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libevdev.so.2 -Wl,--end-group -Wl,-elf2flt -static -Wl,--version-script,.../build/libevdev-1.9.0/libevdev/libevdev.sym
> ld (ld-elf2flt): -shared used without passing a shared library ID
>
> - http://autobuild.buildroot.net/results/dc52a705c7490b722380af7b00ff7c6e172450cf
>
> .../host/bin/x86_64-linux-gcc -o libevdev.so.2.3.0 'evdev at sha/libevdev_libevdev-uinput.c.o' 'evdev at sha/libevdev_libevdev.c.o' 'evdev at sha/libevdev_libevdev-names.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libevdev.so.2 -Wl,--end-group -static -Wl,--version-script,.../build/libevdev-1.9.0/libevdev/libevdev.sym
> .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
> .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC
> .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: final link failed: nonrepresentable section on output
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> ...on.build-enable-static-library-build.patch | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
> create mode 100644 package/libevdev/0003-meson.build-enable-static-library-build.patch
>
> diff --git a/package/libevdev/0003-meson.build-enable-static-library-build.patch b/package/libevdev/0003-meson.build-enable-static-library-build.patch
> new file mode 100644
> index 0000000000..36722bf9a3
> --- /dev/null
> +++ b/package/libevdev/0003-meson.build-enable-static-library-build.patch
> @@ -0,0 +1,29 @@
> +From 0d39ee4958869e9dd7657d6d0528bc4e2461e912 Mon Sep 17 00:00:00 2001
> +From: Peter Seiderer <ps.report@gmx.net>
> +Date: Tue, 10 Mar 2020 09:35:52 +0100
> +Subject: [PATCH] meson.build: enable static library build
> +
> +Use meson library() instead of shared_library() to enable
> +static build.
> +
Upstream: https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/45
> +Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> +---
> + meson.build | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index a623a90..94224cb 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -70,7 +70,7 @@ src_libevdev = [
> +
> + mapfile = join_paths(dir_src, 'libevdev.sym')
> + version_flag = '-Wl,--version-script, at 0@'.format(mapfile)
> +-lib_libevdev = shared_library('evdev',
> ++lib_libevdev = library('evdev',
> + src_libevdev,
> + include_directories: [includes_include],
> + dependencies: [],
> +--
> +2.25.1
> +
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v1] package/libevdev: fix static compile
2020-03-10 8:45 [Buildroot] [PATCH v1] package/libevdev: fix static compile Peter Seiderer
2020-03-10 8:56 ` Peter Seiderer
@ 2020-03-22 21:37 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-03-22 21:37 UTC (permalink / raw)
To: buildroot
On Tue, 10 Mar 2020 09:45:40 +0100
Peter Seiderer <ps.report@gmx.net> wrote:
> Add patch to enable meson static library build (use meson
> library() instead of shared_library()).
>
> Fixes:
>
> - http://autobuild.buildroot.net/results/b920ef5a250e7d23223352367ded50bf32bb5688
>
> .../host/bin/arm-linux-gcc -o libevdev.so.2.3.0 'evdev at sha/libevdev_libevdev-uinput.c.o' 'evdev at sha/libevdev_libevdev.c.o' 'evdev at sha/libevdev_libevdev-names.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libevdev.so.2 -Wl,--end-group -Wl,-elf2flt -static -Wl,--version-script,.../build/libevdev-1.9.0/libevdev/libevdev.sym
> ld (ld-elf2flt): -shared used without passing a shared library ID
>
> - http://autobuild.buildroot.net/results/dc52a705c7490b722380af7b00ff7c6e172450cf
>
> .../host/bin/x86_64-linux-gcc -o libevdev.so.2.3.0 'evdev at sha/libevdev_libevdev-uinput.c.o' 'evdev at sha/libevdev_libevdev.c.o' 'evdev at sha/libevdev_libevdev-names.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libevdev.so.2 -Wl,--end-group -static -Wl,--version-script,.../build/libevdev-1.9.0/libevdev/libevdev.sym
> .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
> .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC
> .../host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: final link failed: nonrepresentable section on output
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> ...on.build-enable-static-library-build.patch | 29 +++++++++++++++++++
> 1 file changed, 29 insertions(+)
> create mode 100644 package/libevdev/0003-meson.build-enable-static-library-build.patch
Applied to master, thanks. I've added a reference to the upstream
commit, as your patch has been merged upstream.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-22 21:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 8:45 [Buildroot] [PATCH v1] package/libevdev: fix static compile Peter Seiderer
2020-03-10 8:56 ` Peter Seiderer
2020-03-22 21:37 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox