[libgda: 1/2] DTD: Fixing DTD file installation



commit 46c745c25751190b90c576bb93b70f3fd8d0fbff
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Fri Jan 11 22:27:33 2019 -0600

    DTD: Fixing DTD file installation
    
    LIBGDAPREFIX should be defined to correctly read DTD file. This bug is
    observable only during library usage and not detectable during check
    test step.

 libgda/Makefile.am | 1 +
 libgda/meson.build | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/libgda/Makefile.am b/libgda/Makefile.am
index ed4f56841..169443bf6 100644
--- a/libgda/Makefile.am
+++ b/libgda/Makefile.am
@@ -32,6 +32,7 @@ GLOBAL_CFLAGS = \
        $(COREDEPS_CFLAGS) \
        $(BDB_CFLAGS) \
        -DBDB_LIB=\""$(BDB_LIB)"\" \
+       -DLIBGDAPREFIX=\""$(datadir)"\" \
        $(GIO_CFLAGS) $(LIBSECRET_CFLAGS) $(GNOME_KEYRING_CFLAGS)
 
 AM_CPPFLAGS = \
diff --git a/libgda/meson.build b/libgda/meson.build
index 8dd31c8db..59dbdea16 100644
--- a/libgda/meson.build
+++ b/libgda/meson.build
@@ -279,6 +279,7 @@ libgda_cargs = [
                meson.build_root() + '/config.h',
                '-DABI_VERSION='+project_api_version,
                '-DABI_NAME='+project_api_name,
+                '-DLIBGDAPREFIX='+get_option('datadir')
        ]
 
 libgda_cargs += sqlite_cargs


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]