/[packages]/cauldron/libutempter/current/SOURCES/libutempter-1.2.0-sanitize-linking-naming.patch
ViewVC logotype

Contents of /cauldron/libutempter/current/SOURCES/libutempter-1.2.0-sanitize-linking-naming.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1588059 - (show annotations) (download)
Tue May 26 17:18:02 2020 UTC (3 years, 10 months ago) by daviddavid
File size: 1353 byte(s)
- new version: 1.2.0

1 diff -Nrup a/Makefile b/Makefile
2 --- a/Makefile 2020-05-26 19:11:01.000000000 +0200
3 +++ b/Makefile 2020-05-26 19:14:29.121349743 +0200
4 @@ -27,7 +27,7 @@ SONAME = $(SHAREDLIB).$(MAJOR)
5 STATICLIB = lib$(PROJECT).a
6 MAP = lib$(PROJECT).map
7
8 -TARGETS = $(PROJECT) $(SHAREDLIB) $(STATICLIB)
9 +TARGETS = $(PROJECT) $(SONAME) $(STATICLIB)
10
11 INSTALL = install
12 libdir = /usr/lib
13 @@ -63,7 +63,7 @@ all: $(TARGETS)
14 $(PROJECT): utempter.c diag.h
15 $(LINK.c) $(COMPILE_PIE) $(LINK_PIE) $(LINK_RELRO) $(LINK_NOW) $(LDLIBS) $< $(OUTPUT_OPTION)
16
17 -$(SHAREDLIB): iface.os $(MAP)
18 +$(SONAME): iface.os $(MAP)
19 $(LINK.o) -shared \
20 -Wl,-soname,$(SONAME),--version-script=$(MAP),-z,relro,-z,defs \
21 -lc $< $(OUTPUT_OPTION)
22 @@ -81,9 +81,8 @@ install:
23 $(DESTDIR)$(includedir) $(DESTDIR)$(man3dir)
24 $(INSTALL) -p -m2711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/
25 $(INSTALL) -p -m644 $(PROJECT).h $(DESTDIR)$(includedir)/
26 - $(INSTALL) -p -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
27 + $(INSTALL) -p -m755 $(SONAME) $(DESTDIR)$(libdir)/$(SONAME)
28 $(INSTALL) -p -m644 $(STATICLIB) $(DESTDIR)$(libdir)/
29 - ln -s $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
30 ln -s $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
31 $(INSTALL) -p -m644 $(PROJECT).3 $(DESTDIR)$(man3dir)/
32 for n in lib$(PROJECT) utempter_add_record utempter_remove_record \

  ViewVC Help
Powered by ViewVC 1.1.30