Advertisement
Guest User

Untitled

a guest
May 10th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. cat @ mint-kitty : ~/projects/c/junk $ cat > rand_test.c
  2. typedef unsigned char u_char;
  3. #include <bsd/stdlib.h>
  4. int main () { return (int) arc4random_uniform(100); }
  5.  
  6. cat @ mint-kitty : ~/projects/c/junk $ gcc -o rand_test ./rand_test.c -Wl,--verbose -lbsd | grep bsd
  7. attempt to open /usr/lib/gcc/x86_64-linux-gnu/5/libbsd.so failed
  8. attempt to open /usr/lib/gcc/x86_64-linux-gnu/5/libbsd.a failed
  9. attempt to open /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libbsd.so succeeded
  10. -lbsd (/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libbsd.so)
  11.  
  12. cat @ mint-kitty : ~/projects/c/junk $ ls -l /lib/x86_64-linux-gnu/libbsd*
  13. lrwxrwxrwx 1 root root    15 Jan 28 00:11 /lib/x86_64-linux-gnu/libbsd.so.0 -> libbsd.so.0.8.2
  14. -rw-r--r-- 1 root root 81040 Jan 28 00:11 /lib/x86_64-linux-gnu/libbsd.so.0.8.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement