Skip to content

Instantly share code, notes, and snippets.

@uebayasi
Last active June 25, 2016 09:03
Show Gist options
  • Save uebayasi/c3ebd670cd2d8cf4f7eb23b2f65cf20a to your computer and use it in GitHub Desktop.
Save uebayasi/c3ebd670cd2d8cf4f7eb23b2f65cf20a to your computer and use it in GitHub Desktop.
  • Fix system header internal include (XXX evil XXX)
    • Replace #include <sys/*.h> with #include "sys/*.h" in /usr/include/*.h
    • Replace #include <sys/*.h> with #include "*.h" in /usr/include/sys/*.h
  • Symlink liblto_plugin.so
cd ${TOOLDIR}/libexec/gcc/x86_64--netbsd/5.4.0
ln -sf liblto_plugin.so.0.0 liblto_plugin.so.0
ln -sf liblto_plugin.so.0.0 liblto_plugin.so.0
  • XXX genmatch vs. libiconv
    • make HOSTLIBIBERTY="$($m -V HOSTLIBIBERTY) -L/usr/local/lib -liconv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment