[seahorse] pkcs11: fix racy build



commit be12e1ed07ecd7c0027900452bae562aa0cc2737
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Oct 13 16:36:19 2013 -0500

    pkcs11: fix racy build
    
    seahorse-pkcs11.h needs to be built before the files that include it are
    compiled. Unfortunately it is generated by valac, and there doesn't seem
    to be any simple way to tell this to Automake. But adding the Vala stamp
    file to BUILT_SOURCES tells it to compile the Vala before doing anything
    else, which is what we need.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710069

 pkcs11/Makefile.am |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/Makefile.am b/pkcs11/Makefile.am
index 5d61c6d..778df1b 100644
--- a/pkcs11/Makefile.am
+++ b/pkcs11/Makefile.am
@@ -4,6 +4,9 @@ uidir = $(datadir)/seahorse/ui/
 localedir = $(datadir)/locale
 seahorselibexecbindir = $(libdir)/seahorse/
 
+# Generate seahorse-pkcs11.h before building libseahorse_pkcs11_la_SOURCES
+BUILT_SOURCES = libvala_code_la_vala.stamp
+
 INCLUDES = -I$(top_builddir) \
        -I$(top_srcdir) \
        -I$(top_srcdir)/common \


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