aboutsummaryrefslogtreecommitdiff
path: root/gprofng/src/Makefile.am
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-06-28 09:04:49 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-06-28 21:36:26 -0700
commit6284f0aa11381a472d7f0ecac6b24b989d2c12db (patch)
treee846847980e4e69f3bbdfa0a600ce93c7284595c /gprofng/src/Makefile.am
parent22a8ddfe934283113c8e88de3b49caee40343e14 (diff)
downloadgdb-6284f0aa11381a472d7f0ecac6b24b989d2c12db.zip
gdb-6284f0aa11381a472d7f0ecac6b24b989d2c12db.tar.gz
gdb-6284f0aa11381a472d7f0ecac6b24b989d2c12db.tar.bz2
gprofng: use $(sysconfdir) instead $(prefix)/etc
gprofng/ChangeLog 2022-06-28 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> PR gprofng/29191 * src/Makefile.am: Use $(sysconfdir) instead $(prefix)/etc. * src/Settings.cc: Likewise. * src/Makefile.in: Rebuild.
Diffstat (limited to 'gprofng/src/Makefile.am')
-rw-r--r--gprofng/src/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/gprofng/src/Makefile.am b/gprofng/src/Makefile.am
index f2bd0a0..bcdd03b 100644
--- a/gprofng/src/Makefile.am
+++ b/gprofng/src/Makefile.am
@@ -104,7 +104,12 @@ LIBGPROFNG = libgprofng.la
ZLIB = @zlibdir@ -lz
ZLIBINC = @zlibinc@
-AM_CPPFLAGS = $(GPROFNG_CPPFLAGS) -DLOCALEDIR=\"@localedir@\" -I.. -I$(srcdir) \
+LOCALEDIR = @localedir@
+SYSCONFDIR = @sysconfdir@
+
+AM_CPPFLAGS = $(GPROFNG_CPPFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" \
+ -DSYSCONFDIR=\"$(SYSCONFDIR)\" \
+ -I.. -I$(srcdir) \
-I$(srcdir)/../common \
-I$(srcdir)/../../include -I$(srcdir)/../../opcodes \
-I../../bfd -I$(srcdir)/../../bfd $(ZLIBINC)
@@ -135,7 +140,7 @@ libgprofng_la_LIBADD = $(top_builddir)/../opcodes/libopcodes.la \
$(GPROFNG_LIBADD) \
$(PTHREAD_LIBS) -ldl
-dbedir = $(prefix)/etc
+dbedir = $(SYSCONFDIR)
dbe_DATA = $(srcdir)/gprofng.rc