diff --git a/ChangeLog b/ChangeLog index ec5415179..9a42b3fd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-09-13 Holger Vogt + * configure.in: add AC_LIBTOOL_WIN32_DLL + * src/makefile.am correct typo + 2008-09-13 Holger Vogt * configure.in: add /mingw as search path for tcl * tclspice.c: replace sigsetjump and sigjmp_buf with macros from macros.h diff --git a/configure.in b/configure.in index 84675a852..6b8a0490f 100644 --- a/configure.in +++ b/configure.in @@ -206,6 +206,8 @@ AM_MAINTAINER_MODE dnl Compiler checks dnl --------------- +ext_CFLAGS="$CFLAGS" + AC_PROG_CC dnl Work on compiler options according to system: @@ -215,16 +217,16 @@ dnl the above AC_PROG_CC may set CFLAGS to "-O2 -g" if test "$enable_debug" = "no"; then if test "x$GCC" = "xyes"; then AC_MSG_WARN(Removing debugging option!) - CFLAGS="$CFLAGS -O2 -Wall" + CFLAGS="$ext_CFLAGS -O2 -Wall -s" else AC_MSG_WARN(Removing debugging option!) - CFLAGS="$CFLAGS" + CFLAGS="$ext_CFLAGS -O2" fi else if test "x$GCC" = "xyes"; then - CFLAGS="$CFLAGS -g -O0 -Wall" + CFLAGS="$ext_CFLAGS -g -O0 -Wall" else - CFLAGS="$CFLAGS -g" + CFLAGS="$ext_CFLAGS -g" fi fi @@ -268,6 +270,7 @@ AC_CANONICAL_HOST dnl Checks for programs +AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_DLOPEN AM_PROG_LIBTOOL AC_PROG_LIBTOOL diff --git a/src/Makefile.am b/src/Makefile.am index b7482f340..e9d0df67b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -267,7 +267,7 @@ libspice_la_LIBADD = ngspice.lo conf.lo \ misc/libmisc.la \ tclspice.lo $(LIBS) libspice_la_CFLAGS = $(AM_CFLAGS) -libspice_la_LDFALGS = -shared -Wl,--version-script=tclspice.map +libspice_la_LDFLAGS = -shared -Wl,--version-script=tclspice.map -no-undefined CLEANFILES = pkgIndex.tcl libspice.so