mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
r25992: ldb: use AC_LIBREPLACE_SHLD and use it for linking shared libraries
metze (This used to be commit 7ee9700abea3e0b5c5f0a6f4941e7e41188edaaf)
This commit is contained in:
parent
5b79c134c1
commit
ff23cad8e3
@ -37,6 +37,7 @@ LIBDL = @LIBDL@
|
||||
SHLIBEXT = @SHLIBEXT@
|
||||
|
||||
LD_EXPORT_DYNAMIC = @LD_EXPORT_DYNAMIC@
|
||||
SHLD = @SHLD@
|
||||
SHLD_FLAGS = @SHLD_FLAGS@
|
||||
|
||||
LDFLAGS = @LDFLAGS@
|
||||
@ -99,7 +100,7 @@ SOLIB = lib/libldb.$(SHLIBEXT).0.9.0
|
||||
STATICLIB = lib/libldb.a
|
||||
|
||||
$(SOLIB): $(OBJS)
|
||||
$(CC) $(SHLD_FLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) $(TALLOC_LIBS) $(TDB_LIBS) $(LDAP_LIBS) @SONAMEFLAG@$(SONAME)
|
||||
$(SHLD) $(SHLD_FLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) $(TALLOC_LIBS) $(TDB_LIBS) $(LDAP_LIBS) @SONAMEFLAG@$(SONAME)
|
||||
|
||||
all: showflags dirs $(OBJS) $(STATICLIB) $(SOLIB) $(BINS) $(EXAMPLES) manpages
|
||||
|
||||
@ -126,7 +127,7 @@ lib/libldb.a: $(OBJS)
|
||||
@-ranlib $@
|
||||
|
||||
lib/libnss_ldb.$(SHLIBEXT).2: $(NSS_OBJ) $(SOLIB)
|
||||
$(CC) $(SHLD_FLAGS) -o $@ $(NSS_OBJ) $(LDFLAGS) $(SOLIB) @SONAMEFLAG@libnss_ldb.$(SHLIBEXT).2
|
||||
$(SHLD) $(SHLD_FLAGS) -o $@ $(NSS_OBJ) $(LDFLAGS) $(SOLIB) @SONAMEFLAG@libnss_ldb.$(SHLIBEXT).2
|
||||
|
||||
sample_module.$(SHLIBEXT): tests/sample_module.o
|
||||
$(MDLD) $(MDLD_FLAGS) -o $@ tests/sample_module.o
|
||||
|
@ -71,6 +71,7 @@ AC_LD_EXPORT_DYNAMIC
|
||||
AC_LD_PICFLAG
|
||||
AC_LD_SHLIBEXT
|
||||
AC_LD_SONAMEFLAG
|
||||
AC_LIBREPLACE_SHLD
|
||||
AC_LIBREPLACE_SHLD_FLAGS
|
||||
AC_LIBREPLACE_MDLD
|
||||
AC_LIBREPLACE_MDLD_FLAGS
|
||||
|
Loading…
x
Reference in New Issue
Block a user