[perl-Glib-Object-Introspection] Makefile.PL/setup.pl: change library extensions on OS X
- From: Brian Manning <bmanning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Makefile.PL/setup.pl: change library extensions on OS X
- Date: Wed, 2 Sep 2015 04:01:14 +0000 (UTC)
commit 8bbd136dcf82857f0ff48bfa3268616fb791ecde
Author: Brian Manning <bmanning src gnome org>
Date: Tue Aug 25 13:36:05 2015 -0700
Makefile.PL/setup.pl: change library extensions on OS X
- On OS X, compile the G:O:I testing libraries with the extension
given in $Config{so} instead of $Config{dlext}; see RT#106656
Makefile.PL | 10 ++++++++--
NEWS | 5 +++++
t/inc/setup.pl | 11 +++++++++--
3 files changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 43228bd..636b5a5 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -172,6 +172,12 @@ sub compile_test_libraries {
print 'Trying to build test libraries... ';
my $success = eval {
+ my $lib_ext;
+ if ( $^O =~ /darwin/ ) {
+ $lib_ext = $Config{so};
+ } else {
+ $lib_ext = $Config{dlext};
+ }
my $gidatadir = ExtUtils::PkgConfig->variable ('gobject-introspection-1.0',
'gidatadir');
die 'Could not find gobject-introspection-1.0' unless defined $gidatadir;
@@ -215,7 +221,7 @@ sub compile_test_libraries {
$cairo_flags{cflags} $cairo_gobject_flags{cflags} $gio_flags{cflags} \\
$testsdir/regress.c \\
$cairo_flags{libs} $cairo_gobject_flags{libs} $gio_flags{libs} \\
- -o libregress.$Config{dlext} $pipe);
+ -o libregress.$lib_ext $pipe);
push @commands,
qq($gir_cmd \\
--include=cairo-1.0 --include=Gio-2.0 \\
@@ -233,7 +239,7 @@ sub compile_test_libraries {
$gio_flags{cflags} \\
$testsdir/gimarshallingtests.c \\
$gio_flags{libs} \\
- -o libgimarshallingtests.$Config{dlext} $pipe);
+ -o libgimarshallingtests.$lib_ext $pipe);
push @commands,
qq($gir_cmd \\
--include=Gio-2.0 \\
diff --git a/NEWS b/NEWS
index 76b48a2..0eb880d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Overview of changes in Glib::Object::Introspection <next>
+========================================================
+
+* Makefile.PL/setup.pl: change library extensions on OS X
+
Overview of changes in Glib::Object::Introspection 0.031
========================================================
diff --git a/t/inc/setup.pl b/t/inc/setup.pl
index 3612776..754b489 100644
--- a/t/inc/setup.pl
+++ b/t/inc/setup.pl
@@ -2,8 +2,15 @@ use Config;
use Glib::Object::Introspection;
use Test::More;
-unless (-e qq(build/libregress.$Config{dlext}) &&
- -e qq(build/libgimarshallingtests.$Config{dlext}))
+my $lib_ext;
+if ( $^O =~ /darwin/ ) {
+ $lib_ext = $Config{so};
+} else {
+ $lib_ext = $Config{dlext};
+}
+
+unless (-e qq(build/libregress.$lib_ext) &&
+ -e qq(build/libgimarshallingtests.$lib_ext))
{
plan skip_all => 'Need the test libraries';
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]