[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Other misc cygwin fixes
From: |
Charles Wilson |
Subject: |
Other misc cygwin fixes |
Date: |
Fri, 01 Nov 2002 14:52:51 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 |
While poring over the libtool code, I found a few nits with cygwin/mingw
support. This patch addresses those.
2002-11-01 Charles Wilson <address@hidden>
* libtool.m4 ([AC_LIBTOOL_DLOPEN_SELF): cygwin uses 'dlopen'
not LoadLibrary.
(AC_LIBTOOL_PROG_LD_SHLIBS): no need to special case
cygwin/mingw/pw based on dlltool limitations; we now use ld
like other GNU targets.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.273
diff -u -r1.273 libtool.m4
--- libtool.m4 31 Oct 2002 00:52:39 -0000 1.273
+++ libtool.m4 1 Nov 2002 01:34:18 -0000
@@ -775,11 +775,16 @@
lt_cv_dlopen_self=yes
;;
- cygwin* | mingw* | pw32*)
+ mingw* | pw32*)
lt_cv_dlopen="LoadLibrary"
lt_cv_dlopen_libs=
;;
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
*)
AC_CHECK_FUNC([shl_load],
[lt_cv_dlopen="shl_load"],
@@ -4711,20 +4719,12 @@
runpath_var=LD_RUN_PATH
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
- case $host_os in
- cygwin* | mingw* | pw32*)
- # dlltool doesn't understand --whole-archive et. al.
- _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- ;;
- *)
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
- _LT_AC_TAGVAR(whole_archive_flag_spec,
$1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
+ _LT_AC_TAGVAR(whole_archive_flag_spec,
$1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
- fi
- ;;
- esac
+ fi
fi
else
# PORTME fill in a description of your system's linker (not GNU ld)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Other misc cygwin fixes,
Charles Wilson <=