summaryrefslogtreecommitdiffstats
path: root/src/progs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-08 03:16:02 +0000
committerDavid Robillard <d@drobilla.net>2007-06-08 03:16:02 +0000
commitc3bed113297638e0274f31248c87092d362cbd3b (patch)
treed5595dbf10a679c47ee9c0e6387e800c9fd15f5d /src/progs
parent2161335139c768a0bec87b2a8b68559abd08ec46 (diff)
downloadingen-c3bed113297638e0274f31248c87092d362cbd3b.tar.gz
ingen-c3bed113297638e0274f31248c87092d362cbd3b.tar.bz2
ingen-c3bed113297638e0274f31248c87092d362cbd3b.zip
Link against, and initialize, glib threads.
git-svn-id: http://svn.drobilla.net/lad/ingen@533 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/ingen/Makefile.am4
-rw-r--r--src/progs/ingen/main.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/progs/ingen/Makefile.am b/src/progs/ingen/Makefile.am
index 9915cae5..7a500868 100644
--- a/src/progs/ingen/Makefile.am
+++ b/src/progs/ingen/Makefile.am
@@ -1,4 +1,4 @@
-AM_CXXFLAGS = @RAUL_CFLAGS@ -I$(top_srcdir)/src/common -I$(top_srcdir)/src/libs -DINGEN_MODULE_DIR=\"$(libdir)/ingen\"
+AM_CXXFLAGS = @RAUL_CFLAGS@ @GTHREAD_CFLAGS@ -I$(top_srcdir)/src/common -I$(top_srcdir)/src/libs -DINGEN_MODULE_DIR=\"$(libdir)/ingen\"
MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = ingen_dev
@@ -7,7 +7,7 @@ desktopfilesdir = $(datadir)/applications
dist_desktopfiles_DATA = ingen.desktop
bin_PROGRAMS = ingen
-ingen_LDADD = @RAUL_LIBS@ ../../libs/module/libingen_module.la
+ingen_LDADD = @RAUL_LIBS@ @GTHREAD_LIBS@../../libs/module/libingen_module.la
ingen_DEPENDENCIES = ../../libs/module/libingen_module.la
ingen_SOURCES = \
diff --git a/src/progs/ingen/main.cpp b/src/progs/ingen/main.cpp
index 720530d0..b8d18e14 100644
--- a/src/progs/ingen/main.cpp
+++ b/src/progs/ingen/main.cpp
@@ -21,6 +21,7 @@
#include <glibmm/convert.h>
#include <glibmm/miscutils.h>
#include <boost/optional.hpp>
+#include <glibmm/thread.h>
#include <raul/Path.h>
#include <raul/RDFWorld.h>
#include <raul/SharedPtr.h>
@@ -71,6 +72,7 @@ main(int argc, char** argv)
SharedPtr<Shared::EngineInterface> engine_interface;
+ Glib::thread_init();
/* Run engine */
if (args.engine_flag) {