From kde-commits Wed Jan 07 22:52:40 2004 From: Alexander Kellett Date: Wed, 07 Jan 2004 22:52:40 +0000 To: kde-commits Subject: kdebindings/korundum/bin Message-Id: <20040107225240.656919398 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107351612904433 CVS commit by lypanov: KRubyInit: This small program allows use of qtruby/korundum programs on platforms for which using the --enable-pthread (option to ruby's configure itself) is required to avert applications from segmentation faulting on startup. This is done by embedding the ruby interpreter in c++, rather than vice versa, thus the initialisation of the Qt/KDE libraries is performed before ruby is initialised. This means you should still be very careful with making use of anything in Qt / KDE that may make use of threads. Usage requires the replacement of ruby in the programs shebang line with the following: #!/usr/bin/env krubyinit CCMAIL:Richard Dale A krubyinit.cpp 1.1 [no copyright] M +8 -0 Makefile.am 1.3 --- kdebindings/korundum/bin/Makefile.am #1.2:1.3 @@ -1,2 +1,10 @@ +INCLUDES = $(all_includes) -I$(RUBY_ARCHDIR) + +bin_PROGRAMS = krubyinit +krubyinit_LDFLAGS = -module $(all_libraries) -version-info 0:0:0 -L$(top_srcdir)/smoke/kde/ +krubyinit_METASOURCES = AUTO +krubyinit_SOURCES = krubyinit.cpp +krubyinit_LDADD = $(LIB_KDE) -lruby $(top_builddir)/smoke/kde/libsmokekde.la $(top_builddir)/qtruby/rubylib/qtruby/libqtrubyinternal.la + install-exec-local: @-rm -f $(DESTDIR)$(bindir)/rbkdeapi