| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH xfsprogs] libxcmd: link against used libs |
| From: | Mike Frysinger <vapier@xxxxxxxxxx> |
| Date: | Wed, 10 Aug 2016 09:52:36 +0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20160809214910.GI19025@dastard> |
| References: | <20160809144343.2228-1-vapier@xxxxxxxxxx> <20160809214910.GI19025@dastard> |
On 10 Aug 2016 07:49, Dave Chinner wrote: > On Tue, Aug 09, 2016 at 10:43:43PM +0800, Mike Frysinger wrote: > > Since this lib uses symbols from libxfs (platform_findsizes) and many > > symbols from libblkid, link against both. Otherwise, the resulting > > shared lib has missing symbols which makes linking against annoying. > > libxcmd is an internal library, linked directly into the xfsprogs > binaries. It is never shipped or used outside xfsprogs, so what is > trying to use libxcmd as a shared library that doesn't also link > against libblkid or libxfs? shouldn't internal libs still have coherent linkage ? otherwise you cause problems even internally for xfs -- any other libs or progs that link against libxcmd have to list all the libs that libxcmd happen to use itself. it also means that you get correct link order which is otherwise not guaranteed. e.g. just because you say libxfs needs to use libblkid doesn't mean the linker must put that after libxcmd in the link list. -mike
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [CFP] Advancement Research in Circuits and Systems International Conference (ARECAS) ,Progress in Computer Sciences and Information Technology International Conference (PROCSIT), International Symposium on Technology Management and Emerging Technologies (ISTMET), 20 â 22 Dec. 2016 in Langkawi Island, Kedah, Malaysia. Publish in SCOPUS Journal indexed. Deadline 31st August 2016, MALTESAS Conferences |
|---|---|
| Next by Date: | Re: [PATCH xfsprogs] libxcmd: link against used libs, Dave Chinner |
| Previous by Thread: | Re: [PATCH xfsprogs] libxcmd: link against used libs, Dave Chinner |
| Next by Thread: | Re: [PATCH xfsprogs] libxcmd: link against used libs, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |