[Gluster-devel] glupy compilation issue and fix

Niels de Vos ndevos at redhat.com
Thu Oct 30 21:28:32 UTC 2014


On Thu, Oct 30, 2014 at 05:15:20PM +0000, Justin Clift wrote:
> On Wed, 29 Oct 2014 15:11:24 +0530
> Kiran Patil <kiran at fractalio.com> wrote:
> <snip>
> > This issue is fixed by changing lib to lib64 at line 219
> > (PYTHONDEV_LDFLAGS) in glusterfs/xlators/features/glupy/src/Makefile.
> 
> Cool, thanks.
> 
> Kind of wondering if there's an established to way to automatically
> detect the right value there (lib/lib64).
> 
> Any ideas?

I'm not sure, but maybe the below patch would do? You'd need to apply
the change and re-run ./autogen.sh.

Niels


diff --git a/configure.ac b/configure.ac
index 3757c33..3dd741c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1007,7 +1007,7 @@ case $host_os in
      linux*)
        CFLAGS="`${PYTHON}-config --cflags`"
        CPPFLAGS=$CFLAGS
-       LDFLAGS="-L`${PYTHON}-config --prefix`/lib `${PYTHON}-config --ldflags`"
+       LDFLAGS="-L`${PYTHON}-config --prefix`/$libdir `${PYTHON}-config --ldflags`"
        ;;
      darwin*)
        CFLAGS="`${PYTHON}-config --cflags`"



More information about the Gluster-devel mailing list