Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. library1.so: library1/file.c library2.so
  2. gcc -o library1.so -shared library1/file.c -ldl -lcheckip -L. -fPIC -Wall -Wextra -std=c99
  3.  
  4. library2.so: library2/file1.go library2/file2.h
  5. go build -buildmode=c-shared -o library2.so libcheckip/file2.go
  6.  
  7. test: install
  8. LD_PRELOAD=library1.so curl localhost
  9.  
  10. install: libfirewall.so libcheckip.so
  11. cp library1.so ${STACK}/lib
  12. cp library2.so ${STACK}/lib
  13.  
  14. .PHONY: test install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement