Skip to content

Instantly share code, notes, and snippets.

@sempostma
Created June 5, 2020 09:48
Show Gist options
  • Save sempostma/34b957be9f3a785e34c33c51b2821f26 to your computer and use it in GitHub Desktop.
Save sempostma/34b957be9f3a785e34c33c51b2821f26 to your computer and use it in GitHub Desktop.
ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
gcc -print-search-dirs | sed '/^lib/b 1;d;:1;s,/[^/.][^/]*/\.\./,/,;t 1;s,:[^=]*=,:;,;s,;,; ,g' | tr \; \\012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment