Skip to content

Instantly share code, notes, and snippets.

@sempostma
Created June 5, 2020 09:48
Show Gist options
  • Select an option

  • Save sempostma/34b957be9f3a785e34c33c51b2821f26 to your computer and use it in GitHub Desktop.

Select an option

Save sempostma/34b957be9f3a785e34c33c51b2821f26 to your computer and use it in GitHub Desktop.

Revisions

  1. sempostma created this gist Jun 5, 2020.
    2 changes: 2 additions & 0 deletions print-library-search-pats.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    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