Last active
January 22, 2024 07:42
-
-
Save rkitover/b639097f5c0304c5c4c66d19159fb9a2 to your computer and use it in GitHub Desktop.
patch to build a static libudev from systemd 237 sources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN systemd-237/meson.build systemd-237.new/meson.build | |
--- systemd-237/meson.build 2018-01-28 10:58:17.000000000 -0500 | |
+++ systemd-237.new/meson.build 2018-02-17 06:01:17.921840048 -0500 | |
@@ -805,7 +805,7 @@ | |
libmount = dependency('mount', | |
version : '>= 2.30', | |
- required : not fuzzer_build) | |
+ required : false) | |
want_seccomp = get_option('seccomp') | |
if want_seccomp != 'false' and not fuzzer_build | |
diff -ruN systemd-237/src/udev/meson.build systemd-237.new/src/udev/meson.build | |
--- systemd-237/src/udev/meson.build 2018-01-28 10:58:17.000000000 -0500 | |
+++ systemd-237.new/src/udev/meson.build 2018-02-17 06:14:19.227324863 -0500 | |
@@ -124,19 +124,17 @@ | |
c_args : ['-fvisibility=default']) | |
libudev_static = static_library( | |
- 'udev', | |
+ 'udev-internal', | |
'udev.h', | |
include_directories : includes, | |
link_with : udev_link_with, | |
link_whole : libudev_basic) | |
-libudev = shared_library( | |
+libudev = library( | |
'udev', | |
'udev.h', # pick a header file at random to work around old meson bug | |
version : libudev_version, | |
include_directories : includes, | |
- link_args : ['-shared', | |
- '-Wl,--version-script=' + libudev_sym_path], | |
link_with : [libsystemd_static, libshared_static], | |
link_whole : libudev_basic, | |
dependencies : [threads], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment