[Freeipa-devel] [PATCH] Allow setting of lib directory to correct non-rpm builds on x86_64

Karl MacMillan kmacmill at redhat.com
Tue Nov 13 18:10:36 UTC 2007


# HG changeset patch
# User "Karl MacMillan <kmacmill at redhat.com>"
# Date 1194977427 18000
# Node ID bf49b683c8d145bf5e757b716791f116c9e81a5e
# Parent  88eab4025284d2e7053b1ad29b93f498aa199378
Allow setting of lib directory to correct non-rpm builds on x86_64.

With this patch you will need to run:
  make autogen LIBDIR=/usr/lib64
Also works for 'make all'.

diff -r 88eab4025284 -r bf49b683c8d1 Makefile
--- a/Makefile	Tue Nov 06 15:57:15 2007 -0800
+++ b/Makefile	Tue Nov 13 13:10:27 2007 -0500
@@ -35,18 +35,20 @@ CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-
 CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-$(CLI_VERSION)
 CLI_TARBALL=$(CLI_TARBALL_PREFIX).tgz
 
+LIBDIR ?= /usr/lib
+
 all: bootstrap-autogen
 	@for subdir in $(SUBDIRS); do \
 		(cd $$subdir && $(MAKE) $@) || exit 1; \
 	done
 
 bootstrap-autogen:
-	cd ipa-server; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
-	cd ipa-client; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
+	cd ipa-server; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR); fi
+	cd ipa-client; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR); fi
 
 autogen:
-	cd ipa-server; ./autogen.sh --prefix=/usr --sysconfdir=/etc;
-	cd ipa-client; ./autogen.sh --prefix=/usr --sysconfdir=/etc;
+	cd ipa-server; ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR)
+	cd ipa-client; ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=$(LIBDIR)
 
 configure:
 	cd ipa-server; ./configure --prefix=/usr --sysconfdir=/etc




More information about the Freeipa-devel mailing list