File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ gcc -shared -fPIC -o doorstop.so doorstop.c
1515
1616macOS:
1717``` sh
18- gcc -shared -fPIC -o doorstop.dylib doorstop.c
18+ gcc -shared -fPIC -o doorstop.dylib doorstop.c plthook_osx.c
1919```
2020
21- Or run ` make ` to generate both x86 and x64 builds .
21+ Or run either ` make build_x64 ` or ` make build_x86 ` depending on your architecture .
2222
2323## How to use
2424
Original file line number Diff line number Diff line change 11CC =gcc
22CCFLAGS =-shared -fPIC
3- FILES =doorstop.c
43
54UNAME_S := $(shell uname -s)
65
76ifeq ($(UNAME_S ) , Linux)
87 EXT = so
98 CCFLAGS += -D LINUX
9+ FILES=doorstop.c
1010endif
1111ifeq ($(UNAME_S ) , Darwin)
1212 EXT = dylib
1313 CCFLAGS += -D OSX
14+ FILES=doorstop.c plthook_osx.c
1415endif
1516
1617build : build_x86 build_x64
You can’t perform that action at this time.
0 commit comments