Add a SONAME to the pppd binary

This hack inserts a SONAME into the pppd binary, which allows us to
run dpkg-gensymbols/dh_makeshlibs over the resulting binary. This is
useful so that we can use Debian's standard build infrastructure to
help track the ppp binary's ABI, which is used by plugins.
Forwarded: not-needed
Last-Update: 2015-12-05

Gbp-Pq: Name pppd-soname-hack.patch
This commit is contained in:
Chris Boot 2022-05-14 02:43:52 +08:00 committed by openKylinBot
parent d896af655c
commit 807808369a
1 changed files with 4 additions and 1 deletions

View File

@ -206,6 +206,8 @@ endif
INSTALL= install INSTALL= install
VERSION = $(shell awk -F '"' '/VERSION/ { print $$2; }' patchlevel.h)
all: $(TARGETS) all: $(TARGETS)
install: pppd install: pppd
@ -217,7 +219,8 @@ install: pppd
$(INSTALL) -c -m 444 pppd.8 $(MANDIR) $(INSTALL) -c -m 444 pppd.8 $(MANDIR)
pppd: $(PPPDOBJS) pppd: $(PPPDOBJS)
$(CC) $(LDFLAGS) -o pppd $(PPPDOBJS) $(LIBS) $(CC) $(LDFLAGS) -o pppd $(PPPDOBJS) $(LIBS) \
-Wl,-soname,pppd.so.$(VERSION)
srp-entry: srp-entry.c srp-entry: srp-entry.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ srp-entry.c $(LIBS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ srp-entry.c $(LIBS)