Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 116045 | Differences between
and this patch

Collapse All | Expand All

(-)contrib.orig/slapd-modules/smbk5pwd/Makefile (-10 / +14 lines)
Lines 10-37 Link Here
10
# <http://www.OpenLDAP.org/license.html>.
10
# <http://www.OpenLDAP.org/license.html>.
11
11
12
LIBTOOL=../../../libtool
12
LIBTOOL=../../../libtool
13
OPT=-g -O2
13
#OPT=
14
CC=gcc
14
CC=gcc
15
15
16
# Omit DO_KRB5 or DO_SAMBA if you don't want to support it.
16
# Omit DO_KRB5 or DO_SAMBA if you don't want to support it.
17
DEFS=-DDO_KRB5 -DDO_SAMBA
17
#DEFS=
18
18
19
HEIMDAL_INC=-I/usr/heimdal/include
19
KRB5_INC=
20
SSL_INC=
20
SSL_INC=
21
LDAP_INC=-I../../../include -I../../../servers/slapd
21
LDAP_INC=-I../../../include -I../../../servers/slapd
22
INCS=$(LDAP_INC) $(HEIMDAL_INC) $(SSL_INC)
22
INCS=$(LDAP_INC) $(SSL_INC) $(KRB5_INC)
23
23
24
HEIMDAL_LIB=-L/usr/heimdal/lib -lkrb5 -lkadm5srv
24
KRB5_LIB=-lkrb5 -lkadm5srv
25
SSL_LIB=-lcrypto
25
SSL_LIB=-lcrypto
26
LDAP_LIB=-lldap_r -llber
26
LDAP_LIB=-lldap_r -llber
27
LIBS=$(LDAP_LIB) $(HEIMDAL_LIB) $(SSL_LIB)
27
ifneq (DDO_KRB5,$(findstring DDO_KRB5,$(DEFS)))
28
28
	LIBS=$(LDAP_LIB) $(SSL_LIB)
29
else
30
	LIBS=$(LDAP_LIB) $(KRB5_LIB) $(SSL_LIB)
31
endif
32
	
29
all:	smbk5pwd.la
33
all:	smbk5pwd.la
30
34
31
35
32
smbk5pwd.lo:	smbk5pwd.c
36
smbk5pwd.lo:	smbk5pwd.c
33
	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $?
37
	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $?
34
38
35
smbk5pwd.la:	smbk5pwd.lo
39
smbk5pwd.la:	smbk5pwd.lo
36
	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info 0:0:0 \
40
	$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -version-info 0:0:0 \
37
	-rpath /usr/local/libexec/openldap -module -o $@ $? $(LIBS)
41
	-rpath /usr/lib/openldap/openldap -module -o $@ $? $(LIBS)

Return to bug 116045