X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A06443858403
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=roumenpetrov.info
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=roumenpetrov.info
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=roumenpetrov.info; s=default; h=Content-Transfer-Encoding:Content-Type:
 In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:
 Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
 Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:
 List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=TJYnBblBOwXgDOxLH7kq/SPpC9AHlPu5E99958WI9gU=; b=LM5DoMwgXS8SZuBrIjDOxRwfVM
 uLUUU4gSb+YMkXo8lzCJrDKr9Kxz1oLLrmTv2swRuNWZq3+5tNoE8A+OmmwLeHlUd01bU9C54kIWr
 T9qaJuM/jg55UxUX+qcFH9SAl6x+QtCaEdq2lt1cFFiuxyeqGnsv75fdnsUbr0aWxKqcOwM13MDVF
 5hbgGEJ85NeGxYhA4MEa+PRQju1Dspb5pu+Ax5REuSeTekEK9LpDX+A/SQADFUMQsut0FHVCG7JtQ
 hh1gYKy2RTSttk+0BqvrE1SXL6eWyZCJSQr3gfRA8qCrQfgNmnXj8psl0xhBUKO7rmUS7kBurFhc6
 WWOQik2g==;
Subject: Re: Add libtool use to autotools package
To: cygwin@cygwin.com
References: <c2dcaf34-bcd8-60a0-06ca-b4a3d1c1026e@SystematicSw.ab.ca>
From: Roumen Petrov <bugtrack@roumenpetrov.info>
Message-ID: <d728dc5c-3797-6114-8327-d4571bd3fcbe@roumenpetrov.info>
Date: Sun, 7 Nov 2021 20:40:39 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Firefox/60.0 SeaMonkey/2.53.7.1
MIME-Version: 1.0
In-Reply-To: <c2dcaf34-bcd8-60a0-06ca-b4a3d1c1026e@SystematicSw.ab.ca>
X-OutGoing-Spam-Status: No, score=-4.2
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - rila.superhosting.bg
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - roumenpetrov.info
X-Get-Message-Sender-Via: rila.superhosting.bg: authenticated_id:
 master78@roumenpetrov.info
X-Authenticated-Sender: rila.superhosting.bg: master78@roumenpetrov.info
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_INFOUSMEBIZ, NICE_REPLY_A,
 RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 1A7If57Q003630

Hello Brian,

Brian Inglis wrote:
> Hi folks,
>
> I am trying to port:
> [SNIP]
> Should I run libtoolize with all defaults in the source package src directory and/or the x11 subdirectory?
Run libtoolize in directory if exist configure.ac that uses libtool.

You may will to redirect project to use common "macro" directory.
Something like :
- top configure.ac
|AC_CONFIG_MACRO_DIR([m4])
- ||configure.ac in foo/bar
|||AC_CONFIG_MACRO_DIR([../../m4])
Remark: if subdir uses or prefer to use ||||||AC_CONFIG_MACRO_DIR([m4]) run ||||||||libtoolize as well.


||||
> Should I add LT_INIT to configure.ac/.in?
Yes if you want to use libtool.
No if is used AC_PROG_LIBTOOL but you may consider upgrade of macros.


> Should I add parameter [win32-dll]?
If project uses AC_LIBTOOL_WIN32_DLL you may consider to upgrade to macro, i.e.  LT_INIT([.... win32-dll ...])
If I remember well libtool  required to add -no-undefinedto LDFLAGS of binary.
Sorry but I forgot needs for "win32-dll". It seems to me harmless.


> Should I add ABI age and current version info and where to?

It depends from use.
If is a loadable module you could use  -avoid-version to skip versioning and -module to remove "lib".
For windows (mingw* or cygwin*) builds I don't think that libtool version scheme makes sense.


> Are there other files that need to be manually added or modified for libtool to work?
This is project dependent.


> Is there an approach documented somewhere for converting Linux library commands to generic libtool commands?
>
Question is not clear to me.
Lbtool documentation point how to use libtool to compile, link, install and etc. Actually this is way to write make "targets" that use libtool.
But if project uses automake there no need to know particular invocation.


Regards,
Roumen Petrov


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

