diff --git a/tests/binary/Makefile.Darwin b/tests/binary/Makefile.Darwin index 304b934..739d4ff 100644 --- a/tests/binary/Makefile.Darwin +++ b/tests/binary/Makefile.Darwin @@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp $(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp $(OBJDIR)test4.o: test4.asm - $(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm + $(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm $(OBJDIR)test4.o: test4.S - $(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S + $(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S clean: $(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS) diff --git a/tests/binary/Makefile.DeforaOS b/tests/binary/Makefile.DeforaOS index 36ba06a..23b5209 100644 --- a/tests/binary/Makefile.DeforaOS +++ b/tests/binary/Makefile.DeforaOS @@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp $(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp $(OBJDIR)test4.o: test4.asm - $(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm + $(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm $(OBJDIR)test4.o: test4.S - $(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S + $(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S clean: $(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS) diff --git a/tests/binary/Makefile.NetBSD b/tests/binary/Makefile.NetBSD index 79ea620..c76ad35 100644 --- a/tests/binary/Makefile.NetBSD +++ b/tests/binary/Makefile.NetBSD @@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp $(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp $(OBJDIR)test4.o: test4.asm - $(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm + $(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm $(OBJDIR)test4.o: test4.S - $(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S + $(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S clean: $(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS) diff --git a/tests/binary/Makefile.Windows b/tests/binary/Makefile.Windows index 65db226..dbc2095 100644 --- a/tests/binary/Makefile.Windows +++ b/tests/binary/Makefile.Windows @@ -54,10 +54,10 @@ $(OBJDIR)test3.o: test3.cpp $(CXX) $(test3_CXXFLAGS) -o $(OBJDIR)test3.o -c test3.cpp $(OBJDIR)test4.o: test4.asm - $(AS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.asm + $(AS) $(test4_ASFLAGS) -m32 -o $(OBJDIR)test4.o test4.asm $(OBJDIR)test4.o: test4.S - $(AS) $(test4_CPPFLAGS) $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S + $(AS) $(test4_CPPFLAGS) -nostdinc $(test4_ASFLAGS) -o $(OBJDIR)test4.o test4.S clean: $(RM) -- $(test_OBJS) $(test2_OBJS) $(test3_OBJS) $(test4_OBJS) diff --git a/tests/binary/project.conf b/tests/binary/project.conf index ae9f9e3..f6f7782 100644 --- a/tests/binary/project.conf +++ b/tests/binary/project.conf @@ -19,3 +19,9 @@ ldflags=-ldl -lsocket -lm [test4] type=binary sources=test4.asm,test4.S + +[test4.asm] +asflags=-m32 + +[test4.S] +cppflags=-nostdinc