mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
build: Improve the compat libs rule
Use the same commands libtool uses when installing symbolic links for the shared libraries.
This commit is contained in:
parent
8eb71af23d
commit
4b0d7f2929
@ -430,7 +430,9 @@ clutter-glx-$(CLUTTER_API_VERSION).pc: clutter-$(CLUTTER_API_VERSION).pc
|
||||
|
||||
pc_files += clutter-glx-$(CLUTTER_API_VERSION).pc
|
||||
|
||||
compat_libs += libclutter-glx-$(CLUTTER_API_VERSION).so.0
|
||||
compat_libs += \
|
||||
libclutter-glx-$(CLUTTER_API_VERSION).so \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
# GDK backend rules
|
||||
@ -568,7 +570,9 @@ clutter-cex100-$(CLUTTER_API_VERSION).pc: clutter-$(CLUTTER_API_VERSION).pc
|
||||
|
||||
pc_files += clutter-cex100-$(CLUTTER_API_VERSION).pc
|
||||
|
||||
compat_libs += libclutter-cex100-$(CLUTTER_API_VERSION).so.0
|
||||
compat_libs += \
|
||||
libclutter-cex100-$(CLUTTER_API_VERSION).so \
|
||||
$(NULL)
|
||||
endif # SUPPORT_CEX100
|
||||
|
||||
if SUPPORT_EGL
|
||||
@ -650,7 +654,9 @@ clutter-wayland-$(CLUTTER_API_VERSION).pc: clutter-$(CLUTTER_API_VERSION).pc
|
||||
|
||||
pc_files += clutter-wayland-$(CLUTTER_API_VERSION).pc
|
||||
|
||||
compat_libs += libclutter-wayland-$(CLUTTER_API_VERSION).so.0
|
||||
compat_libs += \
|
||||
libclutter-wayland-$(CLUTTER_API_VERSION).so \
|
||||
$(NULL)
|
||||
endif # SUPPORT_WAYLAND
|
||||
|
||||
# cally
|
||||
@ -762,9 +768,17 @@ libclutter_@CLUTTER_API_VERSION@_la_LDFLAGS = \
|
||||
$(NULL)
|
||||
|
||||
install-exec-local:
|
||||
for lib in "$(compat_libs)"; do \
|
||||
rm -f $(DESTDIR)$(libdir)/$$lib ; \
|
||||
ln -s libclutter-$(CLUTTER_API_VERSION).so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $(DESTDIR)$(libdir)/$$lib ; \
|
||||
for lib in `echo $(compat_libs)`; do \
|
||||
(cd $(DESTDIR)$(libdir) && \
|
||||
{ ln -s -f libclutter-$(CLUTTER_API_VERSION).so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $$lib.0 || \
|
||||
{ rm -f $$lib.0 && ln -s libclutter-1.0.so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $$lib.0; }; \
|
||||
} \
|
||||
) ; \
|
||||
(cd $(DESTDIR)$(libdir) && \
|
||||
{ ln -s -f libclutter-$(CLUTTER_API_VERSION).so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $$lib || \
|
||||
{ rm -f $$lib && ln -s libclutter-1.0.so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $$lib; }; \
|
||||
} \
|
||||
) ; \
|
||||
done
|
||||
|
||||
# gobject-introspection rules
|
||||
|
Loading…
Reference in New Issue
Block a user