make ARCH=32
cc -o libhl.dylib -m32 -L/usr/local/opt/jpeg-turbo/lib -L/usr/local/lib -shared include/pcre/pcre_chartables.o include/pcre/pcre_compile.o include/pcre/pcre_dfa_exec.o include/pcre/pcre_exec.o include/pcre/pcre_fullinfo.o include/pcre/pcre_globals.o include/pcre/pcre_newline.o include/pcre/pcre_string_utils.o include/pcre/pcre_tables.o include/pcre/pcre_xclass.o src/alloc.o src/std/array.o src/std/buffer.o src/std/bytes.o src/std/cast.o src/std/date.o src/std/error.o src/std/file.o src/std/fun.o src/std/maps.o src/std/math.o src/std/obj.o src/std/random.o src/std/regexp.o src/std/socket.o src/std/string.o src/std/sys.o src/std/types.o src/std/ucs2.o
ld: warning: ld: warning: ignoring file include/pcre/pcre_compile.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_compile.oignoring file include/pcre/pcre_chartables.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_chartables.o
ld: warning: ignoring file include/pcre/pcre_dfa_exec.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_dfa_exec.o
ld: warning: ignoring file include/pcre/pcre_exec.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_exec.o
ld: warning: ignoring file include/pcre/pcre_fullinfo.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_fullinfo.o
ld: warning: ignoring file include/pcre/pcre_globals.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_globals.o
ld: warning: ignoring file include/pcre/pcre_newline.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_newline.o
ld: warning: ignoring file include/pcre/pcre_tables.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_tables.o
ld: warning: ignoring file include/pcre/pcre_string_utils.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_string_utils.o
ld: warning: ignoring file include/pcre/pcre_xclass.o, file was built for x86_64 which is not the architecture being linked (i386): include/pcre/pcre_xclass.o
ld: warning: ignoring file src/alloc.o, file was built for x86_64 which is not the architecture being linked (i386): src/alloc.o
ld: warning: ignoring file src/std/array.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/array.o
ld: warning: ignoring file src/std/buffer.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/buffer.o
ld: warning: ignoring file src/std/bytes.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/bytes.o
ld: warning: ignoring file src/std/cast.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/cast.o
ld: warning: ld: warning: ld: warning: ld: warning: ld: warning: ld: warning: ignoring file src/std/date.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/date.oignoring file src/std/file.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/file.oignoring file src/std/error.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/error.oignoring file src/std/fun.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/fun.oignoring file src/std/math.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/math.oignoring file src/std/maps.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/maps.old: warning:
ld: warning:
ignoring file src/std/random.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/random.oignoring file src/std/obj.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/obj.o
ld: warning: ld: warning: ld: warning: ld: warning: ld: warning:
ignoring file src/std/regexp.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/regexp.oignoring file src/std/socket.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/socket.old: warning: ignoring file src/std/string.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/string.oignoring file src/std/sys.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/sys.oignoring file src/std/types.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/types.o
ignoring file src/std/ucs2.o, file was built for x86_64 which is not the architecture being linked (i386): src/std/ucs2.o
echo 32
32
cc -Wall -O3 -I src -msse2 -mfpmath=sse -std=c11 -I include/pcre -D LIBHL_EXPORTS -m32 -I /usr/local/opt/jpeg-turbo/include -I /usr/local/include -o hl src/callback.o src/code.o src/jit.o src/main.o src/module.o -L. -lhl -ldl -Wl,-export_dynamic -L/usr/local/lib
ld: warning: ignoring file src/callback.o, file was built for x86_64 which is not the architecture being linked (i386): src/callback.o
ld: warning: ignoring file src/code.o, file was built for x86_64 which is not the architecture being linked (i386): src/code.o
ld: warning: ld: warning: ignoring file src/jit.o, file was built for x86_64 which is not the architecture being linked (i386): src/jit.oignoring file src/main.o, file was built for x86_64 which is not the architecture being linked (i386): src/main.o
ld: warning: ignoring file src/module.o, file was built for x86_64 which is not the architecture being linked (i386): src/module.o
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386