From 76a6b9a93157ff7b132bdf212f74be8ff8f3b481 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 14 Oct 2000 15:19:56 +0000 Subject: perl fixes git-svn-id: http://svn.irssi.org/repos/irssi/trunk@754 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-none/Makefile.am | 3 +-- src/fe-none/irssi.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src/fe-none') diff --git a/src/fe-none/Makefile.am b/src/fe-none/Makefile.am index 528e3a7b..7d276128 100644 --- a/src/fe-none/Makefile.am +++ b/src/fe-none/Makefile.am @@ -12,8 +12,7 @@ botti_DEPENDENCIES = @COMMON_NOUI_LIBS@ botti_LDADD = \ @COMMON_NOUI_LIBS@ \ - $(PROG_LIBS) \ - $(PERL_LDFLAGS) + $(PROG_LIBS) botti_SOURCES = \ irssi.c diff --git a/src/fe-none/irssi.c b/src/fe-none/irssi.c index 3c449e22..bd93edd8 100644 --- a/src/fe-none/irssi.c +++ b/src/fe-none/irssi.c @@ -23,6 +23,11 @@ #include "signals.h" #include "core.h" +#ifdef HAVE_STATIC_PERL +void perl_init(void); +void perl_deinit(void); +#endif + void irc_init(void); void irc_deinit(void); @@ -57,11 +62,19 @@ void noui_init(void) signal_add("reload", (SIGNAL_FUNC) sig_reload); signal_add("gui exit", (SIGNAL_FUNC) sig_exit); + +#ifdef HAVE_STATIC_PERL + perl_init(); +#endif signal_emit("irssi init finished", 0); } void noui_deinit(void) { +#ifdef HAVE_STATIC_PERL + perl_deinit(); +#endif + signal_remove("reload", (SIGNAL_FUNC) sig_reload); signal_remove("gui exit", (SIGNAL_FUNC) sig_exit); irc_deinit(); -- cgit v1.2.3