Skip to content

Commit b676b52

Browse files
committed
Build macher as a fat binary.
1 parent 05c2767 commit b676b52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
CFLAGS=-arch x86_64 -arch arm64e
2+
13
macher: append_data.o macher.h macher.c
2-
gcc -o macher append_data.o macher.c
4+
gcc ${CFLAGS} -o macher append_data.o macher.c
35

46
macher.h:
57
/usr/bin/env python3 make_header.py
68

79
append_data.o: append_data.c
8-
gcc -c append_data.c
10+
gcc ${CFLAGS} -c append_data.c
911

1012
example/hello.zip: example/main.tcl
1113
cd example; zip hello.zip main.tcl

0 commit comments

Comments
 (0)