Hi,

The following problem is observed with the 2011R1 version of the
blackfin uclinux distribution:

The libsmbclient.so library is not installed into $(ROOTDIR)/staging
even when CONFIG_USER_SAMBA_SHARED is enabled. As a result, it isn't
possible to build a program that uses libsmbclient.so. I have modified
the samba-3.0.25a/source/makefile as shown in the diff at the end of
this message. I would love to hear comments about the developers so that
I can prepare a patch to be hopefully included in the official version.

-- 
Timur Aydin


diff --git a/user/samba/samba-3.0.25a/source/makefile
b/user/samba/samba-3.0.25a/source/makefile
index 0fc20e9..cd69e43 100644
--- a/user/samba/samba-3.0.25a/source/makefile
+++ b/user/samba/samba-3.0.25a/source/makefile
@@ -16,11 +16,16 @@ else
 SMBMOUNT := with
 endif

-CONFOPTS = --prefix= --$(SMBMOUNT)-smbmount --with-privatedir=/etc/config \
-                       --with-configdir=/etc/config
--with-logfilebase=/var/log \
-                       --without-ldap --disable-cups --disable-pie \
-                       --$(SHARED)-shared --disable-debug
--disable-developer \
-                       --disable-krb5developer --disable-dmalloc
--disable-nls
+CONFOPTS = --prefix=$(STAGEDIR)/usr \
+       --$(SMBMOUNT)-smbmount \
+       --with-privatedir=$(STAGEDIR)/etc/config \
+       --with-configdir=$(STAGEDIR)/etc/config \
+       --with-logfilebase=$(STAGEDIR)/var/log \
+       --with-lockdir=$(STAGEDIR)/var/lock \
+       --with-piddir=$(STAGEDIR)/var/run \
+       --without-ldap --disable-cups --disable-pie \
+       --$(SHARED)-shared --disable-debug --disable-developer \
+       --disable-krb5developer --disable-dmalloc --disable-nls

 ifeq ($(ARCH),arm)
 CFLAGS := $(CFLAGS:-O1=-Os)
@@ -32,6 +37,9 @@ endif
 all: build/build
        $(MAKE) -C build pch
        $(MAKE) -C build
+ifdef CONFIG_USER_SAMBA_SHARED
+       $(MAKE) -C build installclientlib
+endif

 build/build: makefile
        rm -rf build
_______________________________________________
Uclinux-dist-devel mailing list
Uclinux-dist-devel@blackfin.uclinux.org
https://blackfin.uclinux.org/mailman/listinfo/uclinux-dist-devel

Reply via email to