From b09f3c869bf507eb0d95b88fb6d85f5f48da29bc Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 17 Mar 2009 11:32:53 +0000 Subject: [PATCH] [pm] Detect darwin and change dl_load accordingly The dl_load_flags on Darwin are different than the ones from the other platforms, so we need to detect the operating system and change the return value of dl_load_flags() accordingly. --- bindings/perl/Champlain/lib/Champlain.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/perl/Champlain/lib/Champlain.pm b/bindings/perl/Champlain/lib/Champlain.pm index 24a2eba..0b460a7 100644 --- a/bindings/perl/Champlain/lib/Champlain.pm +++ b/bindings/perl/Champlain/lib/Champlain.pm @@ -113,7 +113,7 @@ our %EXPORT_TAGS = ( our @EXPORT_OK = map { @{ $_ } } values %EXPORT_TAGS; -sub dl_load_flags { 0x01 } +sub dl_load_flags { $^O eq 'darwin' ? 0x00 : 0x01 } __PACKAGE__->bootstrap($VERSION); -- 2.39.5