MacOS X compile time changes. (Timothy Wood)
This commit is contained in:
parent
21c844363a
commit
a73cfbc2b5
|
|
@ -16,7 +16,7 @@
|
||||||
# 59 Temple Place - Suite 330
|
# 59 Temple Place - Suite 330
|
||||||
# Boston, MA 02111-1307, USA
|
# Boston, MA 02111-1307, USA
|
||||||
#
|
#
|
||||||
#ident "$Id: Makefile.in,v 1.103 2001/08/10 00:40:00 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.104 2001/09/20 03:21:01 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -37,6 +37,7 @@ includedir = $(prefix)/include
|
||||||
|
|
||||||
dllib=@DLLIB@
|
dllib=@DLLIB@
|
||||||
rdynamic=@rdynamic@
|
rdynamic=@rdynamic@
|
||||||
|
strip_dynamic=@strip_dynamic@
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
|
|
@ -132,6 +133,7 @@ Makefile: Makefile.in config.h.in config.status
|
||||||
libvpi.a: vpithunk.o
|
libvpi.a: vpithunk.o
|
||||||
rm -f $@
|
rm -f $@
|
||||||
ar cvq $@ vpithunk.o
|
ar cvq $@ vpithunk.o
|
||||||
|
ranlib $@
|
||||||
|
|
||||||
# The vpithunk.c file (that makes up the libvpi.a library) needs to
|
# The vpithunk.c file (that makes up the libvpi.a library) needs to
|
||||||
# be make with PIC flags, because shared objects load it.
|
# be make with PIC flags, because shared objects load it.
|
||||||
|
|
@ -197,7 +199,7 @@ $(libdir)/libvpi.a : ./libvpi.a
|
||||||
|
|
||||||
$(libdir)/ivl/ivl@EXEEXT@: ./ivl@EXEEXT@
|
$(libdir)/ivl/ivl@EXEEXT@: ./ivl@EXEEXT@
|
||||||
$(INSTALL_PROGRAM) ./ivl@EXEEXT@ $(libdir)/ivl/ivl@EXEEXT@
|
$(INSTALL_PROGRAM) ./ivl@EXEEXT@ $(libdir)/ivl/ivl@EXEEXT@
|
||||||
$(STRIP) $(libdir)/ivl/ivl@EXEEXT@
|
$(STRIP) $(strip_dynamic) $(libdir)/ivl/ivl@EXEEXT@
|
||||||
|
|
||||||
$(libdir)/ivl/iverilog.conf: $(srcdir)/iverilog.conf
|
$(libdir)/ivl/iverilog.conf: $(srcdir)/iverilog.conf
|
||||||
$(INSTALL_DATA) $(srcdir)/iverilog.conf $(libdir)/ivl/iverilog.conf
|
$(INSTALL_DATA) $(srcdir)/iverilog.conf $(libdir)/ivl/iverilog.conf
|
||||||
|
|
|
||||||
|
|
@ -447,6 +447,9 @@ removed from the list) send e-mail to me.
|
||||||
Macintosh -- MacO/S
|
Macintosh -- MacO/S
|
||||||
Yasuhisa Kato <ykato@mac.com>
|
Yasuhisa Kato <ykato@mac.com>
|
||||||
|
|
||||||
|
Mac O/S X
|
||||||
|
Timothy J. Wood <tjw@omnigroup.com>
|
||||||
|
|
||||||
NetBSD/*
|
NetBSD/*
|
||||||
Dan McMahill <mcmahill@mtl.mit.edu>
|
Dan McMahill <mcmahill@mtl.mit.edu>
|
||||||
|
|
||||||
|
|
|
||||||
17
configure.in
17
configure.in
|
|
@ -152,6 +152,12 @@ esac
|
||||||
AC_SUBST(EXTRALIBS)
|
AC_SUBST(EXTRALIBS)
|
||||||
AC_MSG_RESULT($EXTRALIBS)
|
AC_MSG_RESULT($EXTRALIBS)
|
||||||
|
|
||||||
|
# Darwin requires -no-cpp-precomp
|
||||||
|
case "${host}" in
|
||||||
|
*-*-darwin*)
|
||||||
|
CFLAGS="-no-cpp-precomp"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# The -rdynamic flag is used by iverilog when compiling the target,
|
# The -rdynamic flag is used by iverilog when compiling the target,
|
||||||
# to know how to export symbols of the main program to loadable modules
|
# to know how to export symbols of the main program to loadable modules
|
||||||
|
|
@ -176,9 +182,17 @@ case "${host}" in
|
||||||
*-*-hpux*)
|
*-*-hpux*)
|
||||||
rdynamic="-E"
|
rdynamic="-E"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*-*-darwin*)
|
||||||
|
rdynamic="-Wl,-all_load"
|
||||||
|
strip_dynamic="-SX"
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
AC_SUBST(rdynamic)
|
AC_SUBST(rdynamic)
|
||||||
AC_MSG_RESULT($rdynamic)
|
AC_MSG_RESULT($rdynamic)
|
||||||
|
AC_SUBST(strip_dynamic)
|
||||||
|
AC_MSG_RESULT($strip_dynamic)
|
||||||
|
|
||||||
AC_MSG_CHECKING("for shared library link flag")
|
AC_MSG_CHECKING("for shared library link flag")
|
||||||
shared=-shared
|
shared=-shared
|
||||||
|
|
@ -195,6 +209,9 @@ case "${host}" in
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*-*-darwin*)
|
||||||
|
shared="-bundle -undefined suppress"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(shared)
|
AC_SUBST(shared)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
|
||||||
|
This file describes the procedure to build and install Icarus Verilog on Mac OS X. I assume that you have experience with Unix and Terminal.app.
|
||||||
|
|
||||||
|
|
||||||
|
1) Obtain and install a libdl compatibility library.
|
||||||
|
|
||||||
|
If you don't already have /usr/local/lib/libdl.{a,dylib} and /usr/local/include/dlfcn.h, you can obtain the source for a compatibility layer from at least one of two places:
|
||||||
|
|
||||||
|
http://download.sourceforge.net/fink/dlcompat-20010831.tar.gz
|
||||||
|
http://www.omnigroup.com/~bungi/dlcompat-20010831.tar.gz
|
||||||
|
|
||||||
|
Unpack this tar file and read the README and Makefile. Install the library according to the instructions. Installation in /usr/local is strongly recommended since otherwise autoconf very likely won't be able to find it.
|
||||||
|
|
||||||
|
2) Configure, build and install the Icarus Verilog sources.
|
||||||
|
|
||||||
|
The only change you need to make here is to use a configure command like:
|
||||||
|
|
||||||
|
% CC="cc -no-cpp-precomp" ./configure
|
||||||
|
|
||||||
|
This assumes you are using 'sh', 'zsh', or 'bash'. If you are using 'csh' or 'tcsh', then you'll want something like:
|
||||||
|
|
||||||
|
% setenv CC "cc -no-cpp-precomp"
|
||||||
|
% ./configure
|
||||||
|
|
||||||
|
You can, of course, add other configure options.
|
||||||
|
|
||||||
|
3) Done!
|
||||||
|
|
||||||
|
|
@ -47,6 +47,11 @@ case "${host}" in
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
*-*-darwin*)
|
||||||
|
shared="-bundle -undefined suppress"
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
AC_SUBST(shared)
|
AC_SUBST(shared)
|
||||||
AC_MSG_RESULT($shared)
|
AC_MSG_RESULT($shared)
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,10 @@ case "${host}" in
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*-*-darwin*)
|
||||||
|
shared="-bundle -undefined suppress"
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
AC_SUBST(shared)
|
AC_SUBST(shared)
|
||||||
AC_MSG_RESULT($shared)
|
AC_MSG_RESULT($shared)
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
# 59 Temple Place - Suite 330
|
# 59 Temple Place - Suite 330
|
||||||
# Boston, MA 02111-1307, USA
|
# Boston, MA 02111-1307, USA
|
||||||
#
|
#
|
||||||
#ident "$Id: Makefile.in,v 1.28 2001/06/15 05:05:04 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.29 2001/09/20 03:21:02 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -35,6 +35,8 @@ bindir = @bindir@
|
||||||
libdir = @libdir@
|
libdir = @libdir@
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
|
|
||||||
|
strip_dynamic=@strip_dynamic@
|
||||||
|
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
CXX = @CXX@
|
CXX = @CXX@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
|
@ -75,7 +77,7 @@ install: all installdirs $(libdir)/ivl/system.vpi
|
||||||
|
|
||||||
$(libdir)/ivl/system.vpi: ./system.vpi
|
$(libdir)/ivl/system.vpi: ./system.vpi
|
||||||
$(INSTALL_PROGRAM) ./system.vpi $(libdir)/ivl/system.vpi
|
$(INSTALL_PROGRAM) ./system.vpi $(libdir)/ivl/system.vpi
|
||||||
$(STRIP) $(libdir)/ivl/system.vpi
|
$(STRIP) $(strip_dynamic) $(libdir)/ivl/system.vpi
|
||||||
|
|
||||||
installdirs: ../mkinstalldirs
|
installdirs: ../mkinstalldirs
|
||||||
$(srcdir)/../mkinstalldirs $(libdir)/ivl
|
$(srcdir)/../mkinstalldirs $(libdir)/ivl
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ case "${host}" in
|
||||||
*-*-hpux*)
|
*-*-hpux*)
|
||||||
shared="-b"
|
shared="-b"
|
||||||
;;
|
;;
|
||||||
|
*-*-darwin*)
|
||||||
|
shared="-bundle -undefined suppress"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(shared)
|
AC_SUBST(shared)
|
||||||
AC_MSG_RESULT($shared)
|
AC_MSG_RESULT($shared)
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,11 @@ case "${host}" in
|
||||||
*-*-hpux*)
|
*-*-hpux*)
|
||||||
rdynamic="-E"
|
rdynamic="-E"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
*-*-darwin*)
|
||||||
|
rdynamic="-Wl,-all_load"
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
AC_SUBST(rdynamic)
|
AC_SUBST(rdynamic)
|
||||||
AC_MSG_RESULT($rdynamic)
|
AC_MSG_RESULT($rdynamic)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue