[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Libtool head: Fix for -mode=clean on Cygwin/MinGW
From: |
Peter Ekberg |
Subject: |
RE: Libtool head: Fix for -mode=clean on Cygwin/MinGW |
Date: |
Wed, 21 Sep 2005 11:36:33 +0200 |
* Peter Ekberg wrote on Wednesday, September 21, 2005 11:14 CEST:
> If you use libtool -mode=clean on an uninstalled .la lib on
> Cygwin (or MinGW I assume), not all associated files are
> cleaned out. The reason is as follows; an uninstalled .la
> typically looks like this on Cygwin:
>
> -------
> # liba.la - a libtool library file
> # Generated by ltmain.sh (GNU libtool 1.2076 2005/09/16 08:33:22) 2.1a
> #
> # Please DO NOT delete this file!
> # It is necessary for linking the library.
>
> # The name that we can dlopen(3).
> dlname='cyga-0.dll'
>
> # Names of this library.
> library_names='liba.dll.a'
>
> # The name of the static archive.
> old_library='liba.a'
>
> etc...
> -------
>
> Clean only removes files in $library_names and $old_library, so
> cyga-0.dll is left behind.
>
> Ok to apply?
>
> * libltdl/config/ltmain.m4sh (func_mode_uninstall): Clean
> up $dlname as well when cleaning a libtool library. Fixes
> -mode=clean on Cygwin and MinGW to actually remove the dll
> when cleaning up an uninstalled library.
>
> Ps. For -mode=uninstall, the dll is zapped by a custom
> $postuninstall_cmds.
Oops, the patch was wrong and needed s/dlopen/dlname/g
Sorry for the wasted bandwidth.
Cheers,
Peter
head-clean-dlname-2.patch
Description: head-clean-dlname-2.patch