fix linux x86_32 build

This commit is contained in:
Zack Buhman 2025-12-15 14:17:01 -06:00
parent d73c2be344
commit 03845e4abf

View File

@ -39,6 +39,7 @@ endif
ifdef I386 ifdef I386
ARCH='-m32' ARCH='-m32'
AFLAGS='--32'
endif endif
ifeq ($(shell uname),Linux) ifeq ($(shell uname),Linux)
@ -129,7 +130,7 @@ clean:
rm -f main rm -f main
%.o: %.s %.o: %.s
$(AS) $< -o $@ $(TARGET) $(AS) $(AFLAGS) $< -o $@ $(TARGET)
%.o: %.cpp %.o: %.cpp
$(CXX) $(CXXSTD) $(ARCH) $(CFLAGS) $(OPT) $(DEBUG) $(DEPFLAGS) -MF ${<}.d -c $< -o $@ $(TARGET) $(CXX) $(CXXSTD) $(ARCH) $(CFLAGS) $(OPT) $(DEBUG) $(DEPFLAGS) -MF ${<}.d -c $< -o $@ $(TARGET)