--- openbabel-2.3.2/scripts/perl/Makefile.PL.orig 2015-04-02 18:57:45.000000000 +0000 +++ openbabel-2.3.2/scripts/perl/Makefile.PL 2015-04-02 18:58:56.000000000 +0000 @@ -15,6 +15,9 @@ elsif (-e "$cmakebindir/lib64/libopenbabel.so") { check_lib_or_exit( lib => 'openbabel' , libpath => "$cmakebindir/lib64"); } +elsif (-e "$cmakebindir/libx32/libopenbabel.so") { + check_lib_or_exit( lib => 'openbabel' , libpath => "$cmakebindir/libx32"); +} else { check_lib_or_exit( lib => 'openbabel' , libpath => @ENV{"LD_LIBRARY_PATH"}); } @@ -26,6 +29,8 @@ if (-r "$cmakebindir/lib/libopenbabel.so") and (-s _) and (-B _); $ldfrom = "\$(OBJECT) -L$cmakebindir/lib64 -lopenbabel" if (-r "$cmakebindir/lib64/libopenbabel.so") and (-s _) and (-B _); +$ldfrom = "\$(OBJECT) -L$cmakebindir/libx32 -lopenbabel" + if (-r "$cmakebindir/libx32/libopenbabel.so") and (-s _) and (-B _); # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written.