diff options
-rw-r--r-- | source4/build/smb_build/input.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index 57e2234c02..aa34be4b94 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -158,9 +158,12 @@ sub check_python($$) my $dirname = dirname($python->{SWIG_FILE}); my $basename = basename($python->{SWIG_FILE}, ".i"); - $python->{OBJ_FILES} = ["$dirname/$basename\_wrap.o"]; + $dirname .= "/" unless $dirname =~ /\/$/; + $dirname = "" if $dirname eq "./"; + + $python->{OBJ_FILES} = ["$dirname$basename\_wrap.o"]; $python->{LIBRARY_REALNAME} = "_$basename.\$(SHLIBEXT)"; - $python->{PYTHON_FILES} = ["$dirname/$basename.py"]; + $python->{PYTHON_FILES} = ["$dirname$basename.py"]; } else { my $basename = $python->{NAME}; $basename =~ s/^python_//g; |