Detect -mdll support in Cygwin.
This commit is contained in:
parent
f0718b1345
commit
e836bc951d
14
configure.in
14
configure.in
|
|
@ -95,4 +95,18 @@ AC_SUBST(rdynamic)
|
|||
|
||||
AC_MSG_RESULT($rdynamic)
|
||||
|
||||
AC_MSG_CHECKING("for shared library build flag")
|
||||
shared=-shared
|
||||
case "${host}" in
|
||||
*-*-cygwin*)
|
||||
shared="-mdll -Wl,--enable-auto-image-base"
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(shared)
|
||||
|
||||
AC_MSG_RESULT($shared)
|
||||
|
||||
|
||||
|
||||
AC_OUTPUT(Makefile vpi/Makefile ivlpp/Makefile vvm/Makefile driver/Makefile tgt-null/Makefile tgt-stub/Makefile tgt-verilog/Makefile tgt-pal/Makefile)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
# 59 Temple Place - Suite 330
|
||||
# Boston, MA 02111-1307, USA
|
||||
#
|
||||
#ident "$Id: Makefile.in,v 1.1 2000/12/02 04:50:32 steve Exp $"
|
||||
#ident "$Id: Makefile.in,v 1.2 2000/12/14 23:38:04 steve Exp $"
|
||||
#
|
||||
#
|
||||
SHELL = /bin/sh
|
||||
|
|
@ -53,16 +53,17 @@ all: null.tgt
|
|||
O = null.o
|
||||
|
||||
ifeq (@CYGWIN@,yes)
|
||||
TGTLDFLAGS=-Wl,--enable-auto-image-base -L.. -livl
|
||||
TGTLDFLAGS=-L.. -livl
|
||||
TGTDEPLIBS=../libivl.a
|
||||
else
|
||||
TGTLD=$(CC)
|
||||
TGTLDFLAGS=
|
||||
TGTDEPLIBS=
|
||||
endif
|
||||
|
||||
|
||||
null.tgt: $O $(TGTDEPLIBS)
|
||||
$(CC) -shared -o $@ $O $(TGTLDFLAGS)
|
||||
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.o dep/*.d
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
# 59 Temple Place - Suite 330
|
||||
# Boston, MA 02111-1307, USA
|
||||
#
|
||||
#ident "$Id: Makefile.in,v 1.5 2000/11/11 00:51:21 steve Exp $"
|
||||
#ident "$Id: Makefile.in,v 1.6 2000/12/14 23:38:04 steve Exp $"
|
||||
#
|
||||
#
|
||||
SHELL = /bin/sh
|
||||
|
|
@ -53,7 +53,7 @@ all: stub.tgt
|
|||
O = stub.o
|
||||
|
||||
ifeq (@CYGWIN@,yes)
|
||||
TGTLDFLAGS=-Wl,--enable-auto-image-base -L.. -livl
|
||||
TGTLDFLAGS=-L.. -livl
|
||||
TGTDEPLIBS=../libivl.a
|
||||
else
|
||||
TGTLDFLAGS=
|
||||
|
|
@ -62,7 +62,7 @@ endif
|
|||
|
||||
|
||||
stub.tgt: $O $(TGTDEPLIBS)
|
||||
$(CC) -shared -o $@ $O $(TGTLDFLAGS)
|
||||
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.o dep/*.d
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
# 59 Temple Place - Suite 330
|
||||
# Boston, MA 02111-1307, USA
|
||||
#
|
||||
#ident "$Id: Makefile.in,v 1.4 2000/11/11 00:52:42 steve Exp $"
|
||||
#ident "$Id: Makefile.in,v 1.5 2000/12/14 23:38:04 steve Exp $"
|
||||
#
|
||||
#
|
||||
SHELL = /bin/sh
|
||||
|
|
@ -53,7 +53,7 @@ all: verilog.tgt
|
|||
O = verilog.o
|
||||
|
||||
ifeq (@CYGWIN@,yes)
|
||||
TGTLDFLAGS=-Wl,--enable-auto-image-base -L.. -livl
|
||||
TGTLDFLAGS= -L.. -livl
|
||||
TGTDEPLIBS=../libivl.a
|
||||
else
|
||||
TGTLDFLAGS=
|
||||
|
|
@ -61,7 +61,7 @@ else
|
|||
endif
|
||||
|
||||
verilog.tgt: $O $(TGTDEPLIBS)
|
||||
$(CC) -shared -o $@ $O $(TGTLDFLAGS)
|
||||
$(CC) @shared@ -o $@ $O $(TGTLDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f *.o dep/*.d
|
||||
|
|
|
|||
Loading…
Reference in New Issue