mirror of
https://github.com/mollyim/unbound.git
synced 2025-05-16 15:20:40 +01:00
Merge pull request #511 from yan12125/python-linking
- Reduce unnecessary linking
This commit is contained in:
commit
94ea0e5e8f
2 changed files with 10 additions and 5 deletions
|
@ -61,6 +61,7 @@ PYTHON_CPPFLAGS=-I. @PYTHON_CPPFLAGS@
|
||||||
CFLAGS=-DSRCDIR=$(srcdir) @CFLAGS@
|
CFLAGS=-DSRCDIR=$(srcdir) @CFLAGS@
|
||||||
LDFLAGS=@LDFLAGS@
|
LDFLAGS=@LDFLAGS@
|
||||||
LIBS=@LIBS@
|
LIBS=@LIBS@
|
||||||
|
PYTHON_LIBS=@PYTHON_LIBS@
|
||||||
LIBOBJS=@LIBOBJS@
|
LIBOBJS=@LIBOBJS@
|
||||||
# filter out ctime_r from compat obj.
|
# filter out ctime_r from compat obj.
|
||||||
LIBOBJ_WITHOUT_CTIME=@LIBOBJ_WITHOUT_CTIME@
|
LIBOBJ_WITHOUT_CTIME=@LIBOBJ_WITHOUT_CTIME@
|
||||||
|
@ -478,7 +479,7 @@ libunbound/python/libunbound_wrap.c: $(srcdir)/libunbound/python/libunbound.i un
|
||||||
|
|
||||||
# Pyunbound python unbound wrapper
|
# Pyunbound python unbound wrapper
|
||||||
_unbound.la: libunbound_wrap.lo libunbound.la
|
_unbound.la: libunbound_wrap.lo libunbound.la
|
||||||
$(LIBTOOL) --tag=CC --mode=link $(CC) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -module -avoid-version -no-undefined -shared -o $@ libunbound_wrap.lo -rpath $(PYTHON_SITE_PKG) -L. -L.libs libunbound.la $(LIBS)
|
$(LIBTOOL) --tag=CC --mode=link $(CC) $(RUNTIME_PATH) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -module -avoid-version -no-undefined -shared -o $@ libunbound_wrap.lo -rpath $(PYTHON_SITE_PKG) -L. -L.libs libunbound.la $(PYTHON_LIBS)
|
||||||
|
|
||||||
util/config_file.c: util/configparser.h
|
util/config_file.c: util/configparser.h
|
||||||
util/configlexer.c: $(srcdir)/util/configlexer.lex util/configparser.h
|
util/configlexer.c: $(srcdir)/util/configlexer.lex util/configparser.h
|
||||||
|
|
|
@ -700,11 +700,15 @@ if test x_$ub_test_python != x_no; then
|
||||||
AC_SUBST(PY_MAJOR_VERSION)
|
AC_SUBST(PY_MAJOR_VERSION)
|
||||||
# Have Python
|
# Have Python
|
||||||
AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
|
AC_DEFINE(HAVE_PYTHON,1,[Define if you have Python libraries and header files.])
|
||||||
|
if test x_$ub_with_pythonmod != x_no; then
|
||||||
if test -n "$LIBS"; then
|
if test -n "$LIBS"; then
|
||||||
LIBS="$PYTHON_LDFLAGS $LIBS"
|
LIBS="$PYTHON_LDFLAGS $LIBS"
|
||||||
else
|
else
|
||||||
LIBS="$PYTHON_LDFLAGS"
|
LIBS="$PYTHON_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
PYTHON_LIBS="$PYTHON_LDFLAGS"
|
||||||
|
AC_SUBST(PYTHON_LIBS)
|
||||||
if test -n "$CPPFLAGS"; then
|
if test -n "$CPPFLAGS"; then
|
||||||
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
|
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue