Skip to content

Instantly share code, notes, and snippets.

@retupmoca
Created November 30, 2013 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retupmoca/7724686 to your computer and use it in GitHub Desktop.
Save retupmoca/7724686 to your computer and use it in GitHub Desktop.
Gentoo linux version of /usr/lib64/libz.so
/* GNU ld script
Since Gentoo has critical dynamic libraries in /lib, and the static versions
in /usr/lib, we need to have a "fake" dynamic lib in /usr/lib, otherwise we
run into linking problems. This "fake" dynamic lib is a linker script that
redirects the linker to the real lib. And yes, this works in the cross-
compiling scenario as the sysroot-ed linker will prepend the real path.
See bug http://bugs.gentoo.org/4411 for more info.
*/
OUTPUT_FORMAT ( elf64-x86-64 )
GROUP ( /lib64/libz.so.1 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment