mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
build: Include $host_cpu in tapset directory
SystemTap tapsets are architecture-specific, as they include the full path to the .so file for each probe they reference. Hence, we should install them in an architecture-specific path, or multiarch systems will suffer from collisions between them. A better long-term solution, using $libdir rather than the non-architecture-specific $datadir, is under discussion upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=20264; but this will do for now. https://bugzilla.gnome.org/show_bug.cgi?id=662802
This commit is contained in:
parent
748bb24985
commit
030efac077
@ -2554,13 +2554,13 @@ AM_CONDITIONAL([ENABLE_SYSTEMTAP], [test x$have_systemtap = xyes])
|
||||
|
||||
AC_ARG_WITH([tapset-install-dir],
|
||||
AS_HELP_STRING([--with-tapset-install-dir=DIR],
|
||||
[path where systemtap tapsets are installed [DATADIR/systemtap/tapset]]),
|
||||
[path where systemtap tapsets are installed [DATADIR/systemtap/tapset/HOST_CPU]]),
|
||||
[if test "x${withval}" = x; then
|
||||
ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
|
||||
ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset/${host_cpu}"
|
||||
else
|
||||
ABS_TAPSET_DIR="${withval}"
|
||||
fi],
|
||||
[ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"])
|
||||
[ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset/${host_cpu}"])
|
||||
AC_SUBST(ABS_TAPSET_DIR)
|
||||
|
||||
dnl ************************************
|
||||
|
Loading…
Reference in New Issue
Block a user