summaryrefslogtreecommitdiff
path: root/sss_client
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-03-05 10:35:40 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-03-05 11:16:28 -0500
commit52c4af0623a9fc22640a73935cb1b316583cc398 (patch)
treec06c3fdd4395e19939b37ba11f33ba1b3b5978e5 /sss_client
parent4013218cd8c9840ac6db1084bbdfa22f601bd3b8 (diff)
downloadsssd-52c4af0623a9fc22640a73935cb1b316583cc398.tar.gz
sssd-52c4af0623a9fc22640a73935cb1b316583cc398.tar.bz2
sssd-52c4af0623a9fc22640a73935cb1b316583cc398.zip
Fix sss_client install target
With this fix configure must be passed the right libdir argument depending on the platform you are building on. For example on Linux x86_64: ./configure --libdir=/lib64
Diffstat (limited to 'sss_client')
-rw-r--r--sss_client/Makefile.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/sss_client/Makefile.in b/sss_client/Makefile.in
index 6d80f83c..f7b46575 100644
--- a/sss_client/Makefile.in
+++ b/sss_client/Makefile.in
@@ -29,7 +29,7 @@ NSS_SSS_SONAME = libnss_sss.$(SHLIBEXT).2
NSS_SSS_OBJS = common.o passwd.o group.o
PAM_SSS_SOLIB = pam_sss.$(SHLIBEXT)
-PAM_SSS_OBJS = pam_sss.o common.o
+PAM_SSS_OBJS = pam_sss.o common.o
PAM_LIBS = -lpam -lpam_misc
PAM_CFLAGS = -DDEBUG -g -Wall -Werror
@@ -62,7 +62,7 @@ pam_sss.o: pam_sss.c
@$(CC) $(PICFLAG) $(CFLAGS) $(PAM_CFLAGS) -c $< -o $@
$(PAM_CLIENT): $(PAM_CLIENT_OBJS)
- @$(CC) $(CFLAGS) $(PAM_CFLAGS) $< -o $@ $(PAM_LIBS)
+ @$(CC) $(CFLAGS) $(PAM_CFLAGS) $< -o $@ $(PAM_LIBS)
$(PAM_SSS_SOLIB): $(PAM_SSS_OBJS)
$(SHLD) $(SHLD_FLAGS) -o $@ $(PAM_SSS_OBJS) $(PAM_LIBS)
@@ -70,8 +70,9 @@ $(PAM_SSS_SOLIB): $(PAM_SSS_OBJS)
all: showflags $(NSS_SSS_OBJS) $(NSS_SSS_SOLIB) $(NSS_SSS_SONAME) $(PAM_SSS_SOLIB) $(PAM_CLIENT)
install: all
- $(INSTALLCMD) -m 755 $(NSS_SSS_SOLIB) /lib
- $(INSTALLCMD) -m 755 $(NSS_SSS_SONAME) /lib
+ $(INSTALLCMD) -m 755 $(NSS_SSS_SOLIB) ${libdir}
+ ln -fs $(NSS_SSS_SOLIB) ${libdir}/$(NSS_SSS_SONAME)
+ $(INSTALLCMD) -m 755 $(PAM_SSS_SOLIB) ${libdir}/security
clean:
rm -f *.o *.a */*.o