From: Ben Pfaff Date: Wed, 23 Sep 2009 05:19:17 +0000 (-0700) Subject: Fix "make install" with --enable-relocatable. X-Git-Tag: build37~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=8d3f028e8d334ad8937b0ba75d02715354f7e589 Fix "make install" with --enable-relocatable. When PSPP added support for --enable-relocatable back in 2007, PSPP did not install any shared libraries. Now it does, which requires us to set RELOCATABLE_LIBRARY_PATH in configure.ac. Otherwise, the installed binaries will not work automatically but require some manual user intervention. Also set RELOCATABLE_STRIP as recommended by the gnulib documentation. --- diff --git a/configure.ac b/configure.ac index 6bc1a2f5..95dfc66f 100644 --- a/configure.ac +++ b/configure.ac @@ -206,6 +206,11 @@ if test "$am_cv_func_iconv" != "yes"; then PSPP_REQUIRED_PREREQ([iconv (see http://www.gnu.org/software/libiconv/)]) fi +dnl Required by the gnulib 'relocatable-prog' module. +dnl See doc/relocatable-maint.texi in the gnulib tree for details. +RELOCATABLE_LIBRARY_PATH='$(libdir)' +RELOCATABLE_STRIP=: + PSPP_CHECK_PREREQS AC_CONFIG_FILES([Makefile gl/Makefile])