Skip to content

Commit 8053b66

Browse files
committed
Merge pull request #3 from hakong/master
edit config to take into account the new samba lib names
2 parents a1b3526 + b7c40ba commit 8053b66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/wscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def configure(ctx):
5555
else:
5656
import subprocess
5757
for subdir in 'samba private'.split():
58-
p = subprocess.Popen(['gcc', '-print-file-name=%s/libcli-ldap.so' % (subdir)], stdout=subprocess.PIPE).communicate()[0].rstrip()
58+
p = subprocess.Popen(['gcc', '-print-file-name=%s/libcli-ldap-samba4.so' % (subdir)], stdout=subprocess.PIPE).communicate()[0].rstrip()
5959
if not os.path.exists(p):
60-
p = subprocess.Popen(['gcc', '-print-file-name=%s/libcli-ldap.so.0' % (subdir)], stdout=subprocess.PIPE).communicate()[0].rstrip()
60+
p = subprocess.Popen(['gcc', '-print-file-name=%s/libcli-ldap-samba4.so.0' % (subdir)], stdout=subprocess.PIPE).communicate()[0].rstrip()
6161
if not os.path.exists(p):
6262
continue
6363
ctx.env.SAMBA_LIBS = os.path.abspath(p + '/..')
@@ -78,7 +78,7 @@ def configure(ctx):
7878
''' % (h in 'smb_cli.h smb_cliraw.h smb_composite.h util/debug.h'.split(), h))
7979

8080
libs = []
81-
for l in 'cli-ldap dcerpc dcerpc-samba errors popt talloc ndr-standard samba-hostconfig samba-credentials smbclient-raw'.split():
81+
for l in 'cli-ldap-samba4 dcerpc-samba4 dcerpc-samba-samba4 errors-samba4 popt talloc ndr-standard samba-hostconfig samba-credentials smbclient-raw'.split():
8282
if ctx.check(lib=l, libpath=ctx.env.SAMBA_LIBS, mandatory=False):
8383
libs.append(l)
8484
else:

0 commit comments

Comments
 (0)