Detect whole_archive flags in configure.
This commit is contained in:
parent
cd572a74ce
commit
6fab2e3651
|
|
@ -16,7 +16,7 @@
|
|||
# 59 Temple Place - Suite 330
|
||||
# Boston, MA 02111-1307, USA
|
||||
#
|
||||
#ident "$Id: Makefile.in,v 1.1 2003/02/16 02:23:54 steve Exp $"
|
||||
#ident "$Id: Makefile.in,v 1.2 2003/02/22 04:29:14 steve Exp $"
|
||||
#
|
||||
#
|
||||
SHELL = /bin/sh
|
||||
|
|
@ -55,7 +55,7 @@ all: cadpli.vpl
|
|||
|
||||
O = cadpli.o
|
||||
|
||||
SYSTEM_VPI_LDFLAGS = -Wl,-whole-archive ../libveriuser/libveriuser.a -Wl,-no-whole-archive -L../vvp -lvpi
|
||||
SYSTEM_VPI_LDFLAGS = @whole_archive@ ../libveriuser/libveriuser.a @no_whole_archive@ -L../vvp -lvpi
|
||||
ifeq (@WIN32@,yes)
|
||||
SYSTEM_VPI_LDFLAGS += -liberty
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ AC_MSG_RESULT($PICFLAG)
|
|||
AC_MSG_CHECKING("for -rdynamic compiler flag")
|
||||
|
||||
rdynamic=-rdynamic
|
||||
whole_archive=-Wl,-whole-archive
|
||||
no_whole_archive=-Wl,-no-whole-archive
|
||||
case "${host}" in
|
||||
|
||||
*-*-netbsd*)
|
||||
|
|
@ -84,12 +86,19 @@ case "${host}" in
|
|||
|
||||
*-*-darwin*)
|
||||
rdynamic="-Wl,-all_load"
|
||||
whole_archive=""
|
||||
no_whole_archive=""
|
||||
;;
|
||||
|
||||
esac
|
||||
AC_SUBST(rdynamic)
|
||||
AC_SUBST(whole_archive)
|
||||
AC_SUBST(no_whole_archive)
|
||||
AC_MSG_RESULT($rdynamic)
|
||||
|
||||
AC_MSG_CHECKING("for -whole-archive compiler flags")
|
||||
AC_MSG_RESULT($whole_archive $no_whole_archive)
|
||||
|
||||
AC_MSG_CHECKING("for shared library link flag")
|
||||
shared=-shared
|
||||
case "${host}" in
|
||||
|
|
|
|||
Loading…
Reference in New Issue