don't mess with libtools --enable-static / --enable-shared

tie libspice to -shared
    ngspice et al to -static

and use $(STATIC) elsewhere
  which is governed by configure.ac
This commit is contained in:
rlar 2012-07-07 14:44:29 +02:00
parent cb0a48801d
commit 84b58ebd3b
2 changed files with 6 additions and 5 deletions

View File

@ -315,8 +315,6 @@ if test "x$with_tcl" != x && test "x$with_tcl" != xno ; then
esac
with_x=no
enable_shared=yes
enable_static=no
AC_MSG_CHECKING([for tclConfig.sh])
tcl_config_sh=""
@ -434,11 +432,12 @@ EOF
done
fi
AC_SUBST([STATIC], [-shared])
else
TCL_PACKAGE_PATH=""
TCL_LIB_SPEC=""
enable_shared=no
enable_static=yes
AC_SUBST([STATIC], [-static])
fi
AM_CONDITIONAL([TCL_MODULE], [test "x$has_tcl_module" = xtrue])

View File

@ -302,6 +302,8 @@ tclspinit: $(srcdir)/tclspinit.in
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/src/include -I$(top_srcdir)/src/spicelib/devices @X_CFLAGS@
AM_CFLAGS = -static
LIBS = @LIBS@ @X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@
if WINDOWS
@ -407,7 +409,7 @@ libspice_la_LIBADD += \
misc/libmisc.la \
$(LIBS)
libspice_la_CFLAGS = $(AM_CFLAGS)
libspice_la_CFLAGS = -shared
libspice_la_LDFLAGS = -shared -Wl,--version-script=$(srcdir)/tclspice.map
if TCLWIN
libspice_la_LDFLAGS += -no-undefined