view plugins/perl/libgaimperl.c @ 13490:40c5d0508a1a

[gaim-migrate @ 15866] This is a refactoring of the dbus service directory detection stuff. It was originally taken from guifications and that version had problem when a prefix was specificed to configure. Basically it would always try to install into the system directory regardless of --prefix. Anyways, this new code takes that into consideration. Also, I changed the way gaim.service is generated. It's now created from a .in file and has been relocated to the top of the source tree. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Sun, 12 Mar 2006 21:09:16 +0000
parents a4229dd9c76a
children
line wrap: on
line source

#include <gmodule.h>
void __attribute__ ((constructor)) my_init(void);

void __attribute__ ((constructor)) my_init() {
	/* Very evil hack...puts perl.so's symbols in the global table
	 * but does not create a circular dependancy because g_module_open
	 * will only open the library once. */
	g_module_open("perl.so", 0);
}