mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
build: Calculate ABS_GLIB_RUNTIME_LIBDIR at build time
Rather than calculating it at configure time. This means it can expand $libdir properly, and use the Make $(realpath) function rather than invoking the non-portable `readlink -f`. This fixes problems where `readlink` would be called on an invalid path (due to a variable not being expanded) and would evaluate to "", which would then cause things to be installed in the wrong place. https://bugzilla.gnome.org/show_bug.cgi?id=744772
This commit is contained in:
committed by
Philip Withnall
parent
57f9c590f9
commit
8c263008bb
@@ -828,6 +828,12 @@ dist-hook: \
|
||||
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
||||
cp $$d/$$f $(distdir) || exit 1; done
|
||||
|
||||
if HAVE_GLIB_RUNTIME_LIBDIR
|
||||
ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR))
|
||||
else
|
||||
ABS_GLIB_RUNTIME_LIBDIR = $(libdir)
|
||||
endif
|
||||
|
||||
if HAVE_GLIB_RUNTIME_LIBDIR
|
||||
install-data-hook:
|
||||
mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
|
||||
|
Reference in New Issue
Block a user