You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
849 B

  1. From 000ff7bf2fa463ea99afaea8503c2ed9f8a1852c Mon Sep 17 00:00:00 2001
  2. From: illiliti <illiliti@protonmail.com>
  3. Date: Wed, 8 Sep 2021 21:44:45 +0300
  4. Subject: [PATCH 05/15] Makefile: add stub symbol versioning
  5. Fixes: #38
  6. ---
  7. Makefile | 3 ++-
  8. libudev.sym | 1 +
  9. 2 files changed, 3 insertions(+), 1 deletion(-)
  10. create mode 100644 libudev.sym
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -8,7 +8,8 @@ PKGCONFIGDIR = ${LIBDIR}/pkgconfig
  14. XCFLAGS = ${CPPFLAGS} ${CFLAGS} -std=c99 -fPIC -pthread -D_XOPEN_SOURCE=700 \
  15. -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes \
  16. -Wno-unused-parameter
  17. -XLDFLAGS = ${LDFLAGS} -shared -Wl,-soname,libudev.so.1
  18. +XLDFLAGS = ${LDFLAGS} -shared -Wl,-soname,libudev.so.1 \
  19. + -Wl,-version-script,libudev.sym
  20. XARFLAGS = -rc
  21. OBJ = \
  22. --- /dev/null
  23. +++ b/libudev.sym
  24. @@ -0,0 +1 @@
  25. +LIBUDEV_183 {};