Skip to content

Commit a87d4a1

Browse files
committed
Run ldconfig after installing a shared library on Linux (Issue #148)
1 parent fb18387 commit a87d4a1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changes in libcups
44
v3.0.3 - YYYY-MM-DD
55
-------------------
66

7+
- Now run `ldconfig` on Linux after installing the shared library (Issue #148)
78
- Fixed a potential buffer overflow in `cupsFormEncode`.
89

910

cups/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Library Makefile for libcups.
33
#
4-
# Copyright © 2021-2025 by OpenPrinting.
4+
# Copyright © 2021-2026 by OpenPrinting.
55
#
66
# Licensed under Apache License v2.0. See the file "LICENSE" for more
77
# information.
@@ -290,6 +290,7 @@ install: all $(INSTALL_STATIC)
290290
if test $(LIBCUPS) = "libcups.so.3" -o $(LIBCUPS) = "libcups3.so.3"; then \
291291
$(RM) $(BUILDROOT)$(libdir)/`basename $(LIBCUPS) .3`; \
292292
$(LN) $(LIBCUPS) $(BUILDROOT)$(libdir)/`basename $(LIBCUPS) .3`; \
293+
test -x /usr/sbin/ldconfig && /usr/sbin/ldconfig; \
293294
fi
294295
if test $(LIBCUPS) = "libcups.3.dylib" -o $(LIBCUPS) = "libcups3.3.dylib"; then \
295296
$(RM) $(BUILDROOT)$(libdir)/`basename $(LIBCUPS) .3.dylib`.dylib; \

0 commit comments

Comments
 (0)