1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Path for bugzilla #1152 from Timur Bakeyev. Allow python modules to

build despite libraries added to LDFLAGS instead of LDPATH.
(This used to be commit 98a25dcda8)
This commit is contained in:
Tim Potter 2004-03-24 23:52:11 +00:00
parent cc98a35689
commit 7850250445
2 changed files with 5 additions and 2 deletions

View File

@ -1284,7 +1284,7 @@ python_ext: $(PYTHON_PICOBJS)
fi
PYTHON_OBJS="$(PYTHON_PICOBJS)" \
PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS) $(FLAGS)" \
LIBS="$(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
LIBS="$(LDFLAGS) $(LIBS) $(PASSDB_LIBS) $(IDMAP_LIBS) $(KRB5LIBS) $(LDAP_LIBS)" \
$(PYTHON) python/setup.py build
python_install: $(PYTHON_PICOBJS)
@ -1294,7 +1294,7 @@ python_install: $(PYTHON_PICOBJS)
fi
PYTHON_OBJS="$(PYTHON_PICOBJS)" \
PYTHON_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
LIBS="$(LIBS)" \
LIBS="$(LDFLAGS) $(LIBS)" \
$(PYTHON) python/setup.py install
python_clean:

View File

@ -57,6 +57,9 @@ for lib in string.split(samba_libs):
if lib[0:2] == "-L":
library_dirs.append(lib[2:])
continue
if lib[0:2] == "-W":
# Skip linker flags
continue
print "Unknown entry '%s' in $LIBS variable passed to setup.py" % lib
sys.exit(1)