public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
To: Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Aurelien Jarno <aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org>,
	Reuben Thomas <rrt-0NV8xZLkR+A@public.gmane.org>,
	Reinhard Tartler
	<siretart-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH 5/6] ld.so.8: document $PLATFORM and $LIB expansion
Date: Sat, 10 Dec 2011 22:16:32 -0500	[thread overview]
Message-ID: <201112102216.34565.vapier@gentoo.org> (raw)
In-Reply-To: <20111021052528.GF23372-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>

[-- Attachment #1: Type: Text/Plain, Size: 1551 bytes --]

On Friday 21 October 2011 01:25:28 Jonathan Nieder wrote:
>  - what is $LIB for a non-native ABI?

whatever it's been configured for.  it isn't an env var that is the same across 
all ABIs.  you could configure every ABI to use /lib, but that'd be dumb.

if we look at the 3 ABI's we have on the x86 system and their standard install 
paths:
	- 32bit: lives in /lib and has ldso at /lib/ld-linux.so.2
	- 64bit: lives in /lib64 and has ldso at /lib64/ld-linux-x86-64.so.2
	- x32: lives in /libx32 and has ldso at /libx32/ld-linux-x32.so.2

you don't `./configure && make` once to get multiple ABIs.  you have to 
manually run that per ABI.  so the 32bit ABI gets configured so $LIB is set to 
/lib, then the 64bit ABI gets configured for /lib64, etc...

the ldso at runtime will replace $LIB with whatever it was configured for

>  - does anyone customize this to point somewhere else and make their
>    machine non-FHS-compliant?  Maybe NixOS and Gentoo Prefix do.

you can't really consider Gentoo Prefix as a being the domain of FHS rule.  it 
is not a distro you boot ... it's a set of packages you build/install into 
your $HOME because your host system is old/broken/whatever.

>    What would a person typically use ${LIB} in an rpath for?

it's useful when you want to preload a library for multiple process types.  
why this would get used in an RPATH tag, i can't really guess since the ELF 
itself is already configured for a specific ABI.  maybe someone more inventive 
can come up with something ;).
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2011-12-11  3:16 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-20  7:01 [PATCH/RFC 0/6] ld.so.8: some improvements from Debian Jonathan Nieder
     [not found] ` <20111020070037.GA11392-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20  7:04   ` [PATCH 1/6] ld.so.8: clarify synopsis Jonathan Nieder
     [not found]     ` <20111020070412.GA11485-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20 18:08       ` Mike Frysinger
     [not found]         ` <201110201408.34778.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-20 18:17           ` Reuben Thomas
     [not found]             ` <CAOnWdojdzzvBFnyE9njnZg+RFoaC8V-HGSnhiBhGeY-tQzCiig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-20 18:18               ` Reuben Thomas
2011-10-20 18:26               ` Mike Frysinger
     [not found]                 ` <201110201426.07094.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-20 18:28                   ` Reuben Thomas
     [not found]                     ` <CAOnWdojWj5PYAp7ANX_qmvTJjR9EicSy0yG5LUTumOxQTpmQAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-20 18:51                       ` Mike Frysinger
2011-10-20 18:39           ` Jonathan Nieder
2011-10-20  7:06   ` [PATCH 2/6] ld.so.8: move important information toward the top Jonathan Nieder
2011-10-20  7:09   ` [PATCH 3/6] ld.so.8: document LD_ASSUME_KERNEL Jonathan Nieder
2011-10-20  7:14   ` [PATCH 4/6] ld.so.8: document Debian's /etc/ld.so.nohwcap extension Jonathan Nieder
     [not found]     ` <20111020071424.GD11485-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20 18:11       ` Mike Frysinger
     [not found]         ` <201110201411.03656.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-21  5:30           ` Jonathan Nieder
2011-10-20  7:15   ` [PATCH 5/6] ld.so.8: document $PLATFORM and $LIB expansion Jonathan Nieder
     [not found]     ` <20111020071538.GE11485-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20 18:16       ` Mike Frysinger
     [not found]         ` <201110201416.30351.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-21  5:25           ` Jonathan Nieder
     [not found]             ` <20111021052528.GF23372-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-12-11  3:16               ` Mike Frysinger [this message]
     [not found]                 ` <201112102216.34565.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-04-16 16:59                   ` Jonathan Nieder
2011-10-20  7:16   ` [PATCH 6/6] ld.so.8: document how hwcaps affect search path Jonathan Nieder
2011-11-07  8:41   ` [PATCH/RFC 0/6] ld.so.8: some improvements from Debian Reuben Thomas
2012-04-16  7:26   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkgbcL3deJ4x0DEV==vtiAmYie7+Gw+c=K_dAJhWE4va1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 16:58       ` Jonathan Nieder
2012-04-16 17:19         ` Michael Kerrisk (man-pages)
     [not found]           ` <CAKgNAkj0BAKbP6SrohCEG+eeEAZAYkJ6NA9Jvi0hS2j3e19mmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 17:24             ` Jonathan Nieder
2012-04-16 18:07               ` Michael Kerrisk (man-pages)
     [not found]                 ` <CAKgNAkggZ1EZyBkkkd4xmJnjt-_kw=F_xb81+--gpQztvyD8oA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 18:23                   ` Jonathan Nieder
2012-04-16 19:03                   ` [PATCH v2] ld.so.8: Document effect of hwcaps on search path Jonathan Nieder
2012-04-16 19:19                     ` Michael Kerrisk (man-pages)
     [not found]                       ` <CAKgNAkjfcbiDiGqd1PNpdPcUTQBd+8qyrWZj3D6hnzU5vZdecA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 19:27                         ` [PATCH v3] " Jonathan Nieder
2012-04-16 20:00                           ` Michael Kerrisk (man-pages)
     [not found]                             ` <CAKgNAkiZT4oUV6WKprpc2DWdJMSVQaOEyqL9VmsBub7TMW6HKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 20:13                               ` Jonathan Nieder
2012-04-16 20:29                                 ` Michael Kerrisk (man-pages)
2012-04-16 20:39                           ` Michael Kerrisk (man-pages)
2012-04-21 18:04                           ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201112102216.34565.vapier@gentoo.org \
    --to=vapier-abrp7r+bbdudnm+yrofe0a@public.gmane.org \
    --cc=aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org \
    --cc=jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rrt-0NV8xZLkR+A@public.gmane.org \
    --cc=siretart-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox