diff --git a/autogen.sh b/autogen.sh index e44aa04a5..3781f4878 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,7 +15,7 @@ DIE=0 DIE=1 } -(libtool --version) < /dev/null > /dev/null 2>&1 || { +(libtoolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "You must have libtool installed to compile $PROJECT." echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz" diff --git a/src/xspice/icm/makedefs.in b/src/xspice/icm/makedefs.in index 638bf52d4..502ec0dbf 100644 --- a/src/xspice/icm/makedefs.in +++ b/src/xspice/icm/makedefs.in @@ -8,6 +8,7 @@ top_builddir = ../../.. top_srcdir = @top_srcdir@ subdir = src/xspice/icm mkdir_p = @mkdir_p@ ++uname = $(shell uname) # C compiler to use CC = @CC@ @@ -22,7 +23,11 @@ CFLAGS = @CFLAGS@ -fPIC -DCM_LINUX CMPP = $(TOPDIR)$(top_builddir)/src/xspice/cmpp/cmpp # Flags to use when linking shared library +ifeq "$(strip $(uname))" "Darwin" +LDFLAGS = -bundle -flat_namespace -undefined suppress +else LDFLAGS = -shared +endif # The codemodels to make CMDIRS = spice2poly digital analog xtradev xtraevt