[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] -Wl,-rpath not passed through?
From: |
Steffen Nurpmeso |
Subject: |
[Tinycc-devel] -Wl,-rpath not passed through? |
Date: |
Thu, 02 Jun 2016 16:05:26 +0200 |
User-agent: |
s-nail v14.8.8-246-g97c4a50 |
Hello again!
I have just recognized that i need to use -Wl,-rpath now (new
layout for/with optional (hidden) packages in my ~/usr/opt/), so
great that tcc(1) does support this! (I always wondered why -L
isn't automatically taken over for this purpose, however, since it
is standardized and why should i include something in -L but not
want it to end up as a runtime path? Especially if something
actually had been found during the link process. But, well...)
So then, here we go:
Building..
$ tcc -Wl,-rpath=/home/steffen/usr/opt/.ssl-1.1.0/lib
-Wl,-rpath=/home/steffen/usr/lib -Wl,-rpath=/home/steffen/usr/opt/tcc-mob/lib
-Wl,-rpath=/home/steffen/usr/opt/pcc/lib -Wl,-rpath=/lib
-Wl,-rpath=/usr/local/lib -Wl,-rpath=/usr/lib -o s-nail accmacvar.o
attachments.o auxlily.o cmd1.o cmd2.o cmd3.o cmd_cnd.o collect.o colour.o
dotlock.o edit.o filter.o fio.o folder.o head.o imap_search.o lex_input.o
list.o mailcap.o maildir.o main.o memory.o message.o mime.o mime_enc.o
mime_param.o mime_parse.o mime_types.o nam_a_grp.o openpgp.o openssl.o path.o
pop3.o popen.o privacy.o quit.o send.o sendout.o signal.o smtp.o socket.o
spam.o ssl.o strings.o termcap.o thread.o tty.o ui_str.o urlcrecry.o wordexp.o
-L/home/steffen/usr/opt/.ssl-1.1.0/lib -L/home/steffen/usr/lib
-L/home/steffen/usr/opt/tcc-mob/lib -L/home/steffen/usr/opt/pcc/lib -L/lib
-L/usr/local/lib -L/usr/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lidn -lcurses
text data bss dec hex filename
882664 136640 112760 1132064 114620 s-nail
make[1]: Leaving directory '/home/steffen/src/nail.git'
address@hidden nail.git]$ l /home/steffen/usr/opt/.ssl-1.1.0/lib
pkgconfig/ ../ libcrypto.a libssl.a libcrypto.so.1.1 libcrypto.so@
libssl.so.1.1 libssl.so@ ./ engines/
address@hidden nail.git]$ readelf -d s-nail
Dynamic section at offset 0xf66f8 contains 19 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libssl.so.1.1]
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.1.1]
Yes!
[.]
0x000000000000000f (RPATH) Library rpath: [/usr/lib]
No!
For gcc(1) we end up as desired:
0x000000000000000f (RPATH) Library rpath:
[/home/steffen/usr/opt/.ssl-1.1.0/lib:/home/steffen/usr/lib:/home/steffen/usr/opt/tcc-mob/lib:/home/steffen/usr/opt/pcc/lib:/lib:/usr/local/lib:/usr/lib]
This is still true for [mob:1ca685f], but which no longer needs
a cherry-picked commit to do it. Cool! :-)
Ciao!
--steffen
- [Tinycc-devel] -Wl,-rpath not passed through?,
Steffen Nurpmeso <=
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Steffen Nurpmeso, 2016/06/04
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, David Mertens, 2016/06/04
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Michael Matz, 2016/06/05
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Steffen Nurpmeso, 2016/06/06
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Steffen Nurpmeso, 2016/06/06
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Steffen Nurpmeso, 2016/06/06
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Michael Matz, 2016/06/06
- Re: [Tinycc-devel] -Wl,-rpath not passed through?, Steffen Nurpmeso, 2016/06/06