[perl-Glib-Object-Introspection] Fix building test libraries on Ubuntu 11.10
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Fix building test libraries on Ubuntu 11.10
- Date: Sun, 13 Nov 2011 16:20:10 +0000 (UTC)
commit cc3db669d9d2ee6a2686c5a23b6558e3c77f9cce
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Sun Nov 13 17:17:27 2011 +0100
Fix building test libraries on Ubuntu 11.10
They added --as-needed to the default linker flags, and that breaks
building the test libraries for reasons I don't understand at the
moment. So simply add --no-as-needed for now.
Makefile.PL | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index d4bd4dc..4064542 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -115,7 +115,8 @@ sub compile_test_libraries {
my %gio_flags = ExtUtils::PkgConfig->find ('gio-2.0');
my %glib_flags = ExtUtils::PkgConfig->find ('glib-2.0');
- !system (qq(gcc -shared -g \\
+ # FIXME: Why is --no-as-needed necessary?
+ !system (qq(gcc -shared -Wl,--no-as-needed -g \\
$cairo_flags{cflags} $cairo_flags{libs} \\
$gio_flags{cflags} $gio_flags{libs} \\
$testsdir/regress.c \\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]