build: fixed install of binary targets that are in subdirs
authorAndrew Tridgell <tridge@samba.org>
Sun, 18 Apr 2010 11:08:11 +0000 (21:08 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 18 Apr 2010 11:08:48 +0000 (21:08 +1000)
this should fix the smbd/smbd install problem with Kai's s3 waf build

buildtools/wafsamba/samba_install.py

index 74730dd3b26839447a52c6089e845329850819a9..e2db589ff0f764a4d80cc1b349bf18022d0e7c97 100644 (file)
@@ -29,7 +29,7 @@ def install_binary(self):
     install_path = self.samba_inst_path or '${BINDIR}'
     install_path = bld.EXPAND_VARIABLES(install_path)
 
-    orig_target = self.target
+    orig_target = os.path.basename(self.target)
 
     if install_ldflags != build_ldflags:
         # we will be creating a new target name, and using that for the