File: forcelink

package info (click to toggle)
libudev0-shim 200-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 100 kB
  • sloc: ansic: 27; makefile: 24
file content (22 lines) | stat: -rw-r--r-- 691 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Turn off --as-needed for libudev1
 Debian's default linker settings are to remove dependencies on unnecessary
 libraries. In this case, the dependency isn't unnecessary though, as we
 want to make its symbols available.
 .
 libudev0-shim (1-1) unstable; urgency=medium
 .
   * Initial release
Author: Simon Richter <sjr@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-10

--- libudev0-shim-1.orig/Makefile
+++ libudev0-shim-1/Makefile
@@ -1,6 +1,6 @@
 CFLAGS := -Wall -Wextra -g -fvisibility=hidden -shared -fPIC $(CFLAGS)
 LDFLAGS := -Wl,-soname,libudev.so.0 -Wl,-z,now $(LDFLAGS)
-LDLIBS := -ludev
+LDLIBS := -Wl,--no-as-needed -ludev -Wl,--as-needed
 
 default: all