Subject: | [PATCH 1/3] documentation: reflect the need for using PIC code when building ganglia |
Date: | Sun, 12 Apr 2009 16:10:18 -0700 |
To: | bug-ganglia-gmetric-xs [...] rt.cpan.org |
From: | Carlo Marcelo Arenas Belon <carenas [...] sajinet.com.pe> |
otherwise linking with libganglia, libapr and libconfuse will fail as
object can't be relocated and used in a the XS DSO.
Signed-off-by: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
---
README | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/README b/README
index 8ec920f..cfa2670 100644
--- a/README
+++ b/README
@@ -22,7 +22,7 @@ ganglia tarball. so firstly we configure and make ganglia source.
wget http://dl.sourceforge.net/sourceforge/ganglia/ganglia-3.0.X.tar.gz
tar zxf ganglia-3.0.X.tar.gz
cd ganglia-3.0.X
- ./configure && make
+ ./configure CFLAGS="-fPIC" && make
next, run perl Makefile.PL specifying gaglia build directory by --ganglia-dir
option or environment variable $GANGLIA_DIR.