Karl MacMillan wrote:

> > This largish patch makes the build and installation work on 64bit
> > machines. The only catch here is that to get a 64bit build you need to
> > set LIBDIR on make:
> >
> > make install LIBDIR=/usr/lib64
> >
> > The spec file does this correctly. I couldn't find any reliable way to
> > guess this that works both on real systems and in the almost entirely
> > empty rpm build root (you can't, for example, check for the existence
> > of /usr/lib64).
This commit is contained in:
Karl MacMillan
-
parent aaa992b744
commit d2a19b2009
16 changed files with 72 additions and 87 deletions

View File

@@ -1,9 +1,6 @@
PREFIX ?= $(DESTDIR)/usr
SBIN = $(PREFIX)/sbin
INITDIR = $(DESTDIR)/etc/rc.d/init.d
include ../Makefile.common
LDFLAGS +=-lkrb5 -llber -lldap
CFLAGS ?= -g -Wall -Wshadow
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
@@ -14,8 +11,9 @@ all: $(OBJS)
$(CC) $(CFLAGS) -c -o $@ $<
install:
-mkdir -p $(SBIN)
install -m 755 ipa_kpasswd $(SBIN)
echo $(SBINDIR)
-mkdir -p $(SBINDIR)
install -m 755 ipa_kpasswd $(SBINDIR)
-mkdir -p $(INITDIR)
install -m 755 ipa-kpasswd.init $(INITDIR)/ipa-kpasswd