1
0
Fork 0
mirror of https://github.com/Cloudef/bemenu synced 2024-05-22 15:36:15 +02:00

make: fix soname

This commit is contained in:
Jari Vetoniemi 2020-03-17 12:03:53 +02:00
parent 6350a4000d
commit fdcf8e9b39

View File

@ -35,10 +35,12 @@ wayland: bemenu-renderer-wayland.so
%.a:
$(LINK.c) -c $(filter %.c,$^) $(LDLIBS) -o $@
$(libs): private override full=$(addsuffix .$(VERSION), $@)
$(libs): private override major=$(addsuffix .$(firstword $(subst ., ,$(VERSION))), $@)
$(libs): %: VERSION .git/index
$(LINK.c) -shared -fPIC $(filter %.c %.a,$^) $(LDLIBS) -o $(addsuffix .$(VERSION), $@) -Wl,-soname
ln -fs $(addsuffix .$(VERSION), $@) $(addsuffix .$(firstword $(subst ., ,$(VERSION))), $@)
ln -fs $(addsuffix .$(VERSION), $@) $@
$(LINK.c) -shared -fPIC $(filter %.c %.a,$^) $(LDLIBS) -o $(full) -Wl,-soname=$(major)
ln -fs $(full) $(major)
ln -fs $(full) $@
$(pkgconfigs): %: VERSION %.in
sed "s/@VERSION@/$(VERSION)/;s,@PREFIX@,$(PREFIX),;s,@LIBDIR@,$(libdir)," $(addsuffix .in, $@) > $@