tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] -Wl,-rpath not passed through?


From: David Mertens
Subject: Re: [Tinycc-devel] -Wl,-rpath not passed through?
Date: Sat, 4 Jun 2016 21:27:51 -0400

Nice. I am not very familiar with this part of tcc, but I noticed the use of ':' as a path separator. Is this the path separator used across all platforms? In particular, what about Windows?

Also, I am not sure what others think about the first line in which you declare two integers and initialize them with the return values of function calls. I guess that's fine, but I don't see it often in the codebase. @Everyone, do we have a coding standard about this?

David

On Sat, Jun 4, 2016 at 9:46 AM, Steffen Nurpmeso <address@hidden> wrote:
Hi!

Pretty stormy here, huh?

i wrote:
 |Hello again!
 |
 |I have just recognized that i need to use -Wl,-rpath now (new

 |So then, here we go:
 |  address@hidden nail.git]$ readelf -d s-nail

 |   0x000000000000000f (RPATH)              Library rpath: [/usr/lib]

 |This is still true for [mob:1ca685f], but which no longer needs
 |a cherry-picked commit to do it.  Cool!  :-)

With the attached diff we get

  address@hidden nail.git]$ readelf -d s-nail
  Dynamic section at offset 0xf6a78 contains 19 entries:
    Tag        Type                         Name/Value
   0x0000000000000001 (NEEDED)             Shared library: [libssl.so.1.1]
   0x0000000000000001 (NEEDED)             Shared library: [libcrypto.so.1.1]

   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]

Yay.
Ciao!

--steffen

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]