Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library1.so: library1/file.c library2.so
- gcc -o library1.so -shared library1/file.c -ldl -lcheckip -L. -fPIC -Wall -Wextra -std=c99
- library2.so: library2/file1.go library2/file2.h
- go build -buildmode=c-shared -o library2.so libcheckip/file2.go
- test: install
- LD_PRELOAD=library1.so curl localhost
- install: libfirewall.so libcheckip.so
- cp library1.so ${STACK}/lib
- cp library2.so ${STACK}/lib
- .PHONY: test install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement