summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-03-24 14:27:01 -0500
committerGerald (Jerry) Carter <jerry@samba.org>2008-03-24 17:25:13 -0500
commiteeeb4aa931111b9091eaf3af8c7e709155a23ccf (patch)
tree8ff8b11c76f405ed13dd6ae2c1bca07e8a4e6c77 /source3
parent2c5c3a0ba980ab97450cb97e1e575b23898ccc1f (diff)
downloadsamba-eeeb4aa931111b9091eaf3af8c7e709155a23ccf.tar.gz
samba-eeeb4aa931111b9091eaf3af8c7e709155a23ccf.tar.bz2
samba-eeeb4aa931111b9091eaf3af8c7e709155a23ccf.zip
Fix libtdb some to move back towards allowing out of tree builds
Remaining problem is that not all *.syms linker scripts are generated so the LD command needs to look in a single place. Out of tree builds now work but report write access to the source tree in order to create the $(srcdir)/expotrs/libtdb.sysms file. (This used to be commit 6e9287c5c3a6bbd15ec495593978c1a76e64ee60)
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in2
-rw-r--r--source3/configure.in2
-rwxr-xr-xsource3/script/mksyms.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 19bdad39e4..d9d0ea2d48 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -150,7 +150,7 @@ LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
-LIBTDB_SYMS=exports/libtdb.syms
+LIBTDB_SYMS=$(srcdir)/exports/libtdb.syms
LIBTDB_HEADERS=@tdbdir@/include/tdb.h
LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
diff --git a/source3/configure.in b/source3/configure.in
index 8b227d0142..bcfad68875 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -33,7 +33,7 @@ AC_SUBST(TALLOC_OBJS)
# TODO: These should come from m4_include(lib/tdb/libtdb.m4)
# but currently this fails: things have to get merged from s4.
-tdbdir="lib/tdb"
+tdbdir="${srcdir-.}/lib/tdb"
AC_SUBST(tdbdir)
TDB_CFLAGS="-I$tdbdir/include"
AC_SUBST(TDB_CFLAGS)
diff --git a/source3/script/mksyms.sh b/source3/script/mksyms.sh
index 637ec5027c..51d3fbd999 100755
--- a/source3/script/mksyms.sh
+++ b/source3/script/mksyms.sh
@@ -34,7 +34,7 @@ echo creating $symsfile
mkdir -p `dirname $symsfile`
-${awk} -f script/mksyms.awk $proto_src > $symsfile_tmp
+${awk} -f `dirname $0`/mksyms.awk $proto_src > $symsfile_tmp
if cmp -s $symsfile $symsfile_tmp 2>/dev/null
then