aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
Diffstat (limited to 'com32')
-rw-r--r--com32/lib/MCONFIG2
-rw-r--r--com32/libutil/Makefile2
-rw-r--r--com32/modules/Makefile2
-rw-r--r--com32/samples/Makefile2
4 files changed, 4 insertions, 4 deletions
diff --git a/com32/lib/MCONFIG b/com32/lib/MCONFIG
index f1874dca..663a8cfd 100644
--- a/com32/lib/MCONFIG
+++ b/com32/lib/MCONFIG
@@ -8,7 +8,7 @@ PERL = perl
STRIP = strip --strip-all -R .comment -R .note
OBJCOPY = objcopy
-REQFLAGS = -g -m32 -D__COM32__ -I. -I./sys -I../include
+REQFLAGS = -g -m32 -mregparm=3 -DREGPARM=3 -D__COM32__ -I. -I./sys -I../include
OPTFLAGS = -Os -march=i386 -falign-functions=0 -falign-jumps=0 -falign-labels=0
WARNFLAGS = -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline
diff --git a/com32/libutil/Makefile b/com32/libutil/Makefile
index 12c5c110..90545e31 100644
--- a/com32/libutil/Makefile
+++ b/com32/libutil/Makefile
@@ -40,7 +40,7 @@ LD = ld -m elf_i386
AR = ar
NASM = nasm
RANLIB = ranlib
-CFLAGS = -D__COM32__ -W -Wall -march=i386 -Os -fomit-frame-pointer -I./include -I../include
+CFLAGS = -mregparm=3 -DREGPARM=3 -D__COM32__ -W -Wall -march=i386 -Os -fomit-frame-pointer -I./include -I../include
SFLAGS = -D__COM32__ -march=i386
LDFLAGS = -T ../lib/com32.ld
LNXCFLAGS = -I./include -W -Wall -march=i386 -Os -g
diff --git a/com32/modules/Makefile b/com32/modules/Makefile
index f64cf377..e5d1dfa7 100644
--- a/com32/modules/Makefile
+++ b/com32/modules/Makefile
@@ -25,7 +25,7 @@ LD = ld -m elf_i386
AR = ar
NASM = nasm
RANLIB = ranlib
-CFLAGS = -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
+CFLAGS = -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
LNXCFLAGS = -W -Wall -march=i386 -Os -g -I../libutil/include
LNXSFLAGS = -march=i386
LNXLDFLAGS = -g
diff --git a/com32/samples/Makefile b/com32/samples/Makefile
index 574ea89e..ddcdaa26 100644
--- a/com32/samples/Makefile
+++ b/com32/samples/Makefile
@@ -25,7 +25,7 @@ LD = ld -m elf_i386
AR = ar
NASM = nasm
RANLIB = ranlib
-CFLAGS = -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
+CFLAGS = -mregparm=3 -DREGPARM=3 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../libutil/include -I../include -D__COM32__
LNXCFLAGS = -W -Wall -march=i386 -Os -g -I../libutil/include
LNXSFLAGS = -march=i386
LNXLDFLAGS = -g