[perl-Glib-Object-Introspection] Fix compilation of the test lib on x86-64



commit a59dc259d9a882c66f44a7dab383e43f34192c59
Author: Daniel P. Berrange <dan berrange com>
Date:   Tue Jan 3 12:33:30 2012 +0100

    Fix compilation of the test lib on x86-64
    
    We need to use -fPIC there.

 Makefile.PL |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.PL b/Makefile.PL
index 2415104..7adbbfc 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -116,7 +116,7 @@ sub compile_test_libraries {
     my %glib_flags = ExtUtils::PkgConfig->find ('glib-2.0');
 
     # FIXME: Why is --no-as-needed necessary?
-       !system (qq(gcc -shared -Wl,--no-as-needed -g \\
+       !system (qq(gcc -shared -fPIC -Wl,--no-as-needed -g \\
                    $cairo_flags{cflags} $cairo_flags{libs} \\
                    $gio_flags{cflags} $gio_flags{libs} \\
                    $testsdir/regress.c \\
@@ -132,7 +132,7 @@ sub compile_test_libraries {
                    1>/dev/null 2>/dev/null))
     && !system (qq(g-ir-compiler Regress-1.0.gir -o Regress-1.0.typelib \\
                    1>/dev/null 2>/dev/null))
-    && !system (qq(gcc -shared -g \\
+    && !system (qq(gcc -shared -fPIC -g \\
                    $glib_flags{cflags} $glib_flags{libs} \\
                    $testsdir/gimarshallingtests.c \\
                    -o libgimarshallingtests.so 1>/dev/null 2>/dev/null))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]