Skip to content

Instantly share code, notes, and snippets.

@marcelog
Last active May 8, 2016 18:33
Show Gist options
  • Save marcelog/e95e15758af6f6ada66983af9a39de2c to your computer and use it in GitHub Desktop.
Save marcelog/e95e15758af6f6ada66983af9a39de2c to your computer and use it in GitHub Desktop.
$ gcc helloworld.c -o helloworld
$ file helloworld
helloworld: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped
$ LD_LIBRARY_PATH=/usr/cross-freebsd/lib
$ /usr/cross-freebsd/bin/x86_64-pc-freebsd7-gcc helloworld.c -o helloworld
$ file helloworld
helloworld: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), for FreeBSD 7.2, dynamically linked (uses shared libs), FreeBSD-style, not stripped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment