Firsts fixes in order to compile Python binding under Darwin.
This commit is contained in:
parent
5fe9c9cbc9
commit
a187ddc0d8
|
@ -37,6 +37,7 @@ dnl Perform host specific configuration
|
|||
dnl ==========================================================================
|
||||
NULL=
|
||||
MINGW=0
|
||||
DARWIN=0
|
||||
dnl For java sun environment automagic include subdir guessing. (dirty ? No...)
|
||||
SUN_EXTRA_INCLUDE=
|
||||
case "${host}" in
|
||||
|
@ -81,6 +82,9 @@ dnl fi
|
|||
*linux*)
|
||||
SUN_EXTRA_INCLUDE="linux"
|
||||
;;
|
||||
*Darwin*)
|
||||
DARWIN=1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
@ -619,9 +623,9 @@ AC_SUBST(CFLAGS)
|
|||
AC_SUBST(CPPFLAGS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
|
||||
dnl Temporaly
|
||||
dnl Dirty system often means dirty hacks...
|
||||
AM_CONDITIONAL(MINGW, test $MINGW == 1)
|
||||
AM_CONDITIONAL(WITH_PYTHON, test 1 -eq 0)
|
||||
AM_CONDITIONAL(DARWIN, test $DARWIN == 1)
|
||||
|
||||
|
||||
dnl ==========================================================================
|
||||
|
|
|
@ -7,8 +7,11 @@ python_LTLIBRARIES = _lasso.la
|
|||
_lasso_la_SOURCES = lasso_wrap.c
|
||||
_lasso_la_CFLAGS = $(LASSO_CFLAGS) -DSWIG_COBJECT_TYPES $(PY_CFLAGS)
|
||||
_lasso_la_LIBADD = $(top_builddir)/lasso/liblasso.la $(LASSO_LIBS)
|
||||
if DARWIN
|
||||
_lasso_la_LDFLAGS = -no-undefined -module -avoid-version -Wl,-F. -Wl,-F. -bundle -framework Python
|
||||
else
|
||||
_lasso_la_LDFLAGS = -no-undefined -module -avoid-version
|
||||
|
||||
endif
|
||||
lasso_wrap.c lasso.py: $(top_srcdir)/swig/Lasso.i
|
||||
$(SWIG) -v -python -module lasso -o lasso_wrap.c $<
|
||||
|
||||
|
|
Loading…
Reference in New Issue