Last active
October 25, 2017 10:15
-
-
Save lantw44/567a2555ec6d3185408354ac44c6629c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/daemon/Makefile b/daemon/Makefile | |
| index b65a717..486205e 100644 | |
| --- a/daemon/Makefile | |
| +++ b/daemon/Makefile | |
| @@ -28,7 +28,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-s -L../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-DLINUX -O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lcrypt -lresolv" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -DLINUX -O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lcrypt -lresolv" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-DSOLARIS -O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lsocket -lresolv -lnsl -L/usr/ucblib -lucb -R/usr/ucblib" $(EXE) | |
| diff --git a/game/Makefile b/game/Makefile | |
| index a2c5848..48b0e03 100644 | |
| --- a/game/Makefile | |
| +++ b/game/Makefile | |
| @@ -22,7 +22,7 @@ SO = bar.so bingo.so bj.so bwboard.so chessmj.so dice.so dragon.so dict.so fanta | |
| .SUFFIXES: .c .o .so | |
| .c.o: ; $(CC) $(CFLAGS) -c $*.c | |
| -.o.so: ; ld -s -G $*.o -o $*.so -L../lib -ldao | |
| +.o.so: ; ld -s -G $*.o -o $*.so -L../lib -ldao -melf_i386 | |
| all: | |
| @@ -39,7 +39,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-DSOLARIS -DSYSV -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| diff --git a/innbbsd/Makefile b/innbbsd/Makefile | |
| index 63ca63d..bd68d23 100644 | |
| --- a/innbbsd/Makefile | |
| +++ b/innbbsd/Makefile | |
| @@ -35,7 +35,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-s -L../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-m32 -s -L../lib -ldao" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-DSOLARIS -O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lsocket -lnsl -L/usr/ucblib -lucb" $(EXE) | |
| diff --git a/lib/Makefile b/lib/Makefile | |
| index e5a0340..be46b35 100644 | |
| --- a/lib/Makefile | |
| +++ b/lib/Makefile | |
| @@ -11,7 +11,7 @@ | |
| CC = gcc | |
| RANLIB = ranlib | |
| CPROTO = cproto -E"gcc -pipe -E" -I../include # -s -v | |
| -CFLAGS = -O2 -s -pipe -fomit-frame-pointer -Wunused -I../include | |
| +CFLAGS = -O2 -s -pipe -fomit-frame-pointer -Wunused -I../include -m32 | |
| # ------------------------------------------------------ # | |
| diff --git a/maple/Makefile b/maple/Makefile | |
| index 0276fcd..f43f1a7 100644 | |
| --- a/maple/Makefile | |
| +++ b/maple/Makefile | |
| @@ -37,7 +37,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-s -L../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-s -L../lib -ldao -lcrypt -lresolv -ldl -rdynamic" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-m32 -s -L../lib -ldao -lcrypt -lresolv -ldl -rdynamic" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-DSOLARIS -DSYSV -O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-s -L../lib -ldao -ltermcap -lsocket -lnsl -lresolv -lelf -ldl" $(EXE) | |
| diff --git a/pip/Makefile b/pip/Makefile | |
| index 0ba0650..1f63e5d 100644 | |
| --- a/pip/Makefile | |
| +++ b/pip/Makefile | |
| @@ -35,7 +35,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-DSOLARIS -DSYSV -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| @@ -54,7 +54,7 @@ cygwin: | |
| pip.so: $(OBJ) | |
| - ld -s -G $(OBJ) -o pip.so -L../lib -ldao | |
| + ld -s -G $(OBJ) -o pip.so -L../lib -ldao -melf_i386 | |
| install: $(SO) | |
| diff --git a/so/Makefile b/so/Makefile | |
| index 8422e52..4bdcb80 100644 | |
| --- a/so/Makefile | |
| +++ b/so/Makefile | |
| @@ -22,7 +22,7 @@ SO = admutil.so aloha.so bank.so chat.so help.so innbbs.so manage.so newbrd.so \ | |
| .SUFFIXES: .c .o .so | |
| .c.o: ; $(CC) $(CFLAGS) -c $*.c | |
| -.o.so: ; ld -s -G $*.o -o $*.so -L../lib -ldao | |
| +.o.so: ; ld -s -G $*.o -o $*.so -L../lib -ldao -melf_i386 | |
| all: | |
| @@ -39,7 +39,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -DLINUX -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-DSOLARIS -DSYSV -O2 -pipe -fomit-frame-pointer -Wunused -I../include" $(SO) | |
| diff --git a/util/Makefile b/util/Makefile | |
| index f191168..02d7e55 100644 | |
| --- a/util/Makefile | |
| +++ b/util/Makefile | |
| @@ -31,7 +31,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../include" LDFLAGS="-s -L../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lcrypt -lresolv" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lcrypt -lresolv" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../lib -ldao -lsocket -lresolv -lnsl -L/usr/ucblib -lucb -R/usr/ucblib" $(EXE) | |
| diff --git a/util/backup/Makefile b/util/backup/Makefile | |
| index 5bc70a4..71973ae 100644 | |
| --- a/util/backup/Makefile | |
| +++ b/util/backup/Makefile | |
| @@ -29,7 +29,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../../include" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao -lsocket -lnsl -L/usr/ucblib -lucb" $(EXE) | |
| diff --git a/util/tran/Makefile b/util/tran/Makefile | |
| index bd62ab8..682e068 100644 | |
| --- a/util/tran/Makefile | |
| +++ b/util/tran/Makefile | |
| @@ -36,7 +36,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../../include" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao -lsocket -lnsl -L/usr/ucblib -lucb" $(EXE) | |
| diff --git a/util/uno/Makefile b/util/uno/Makefile | |
| index b8141ae..f1f3cfd 100644 | |
| --- a/util/uno/Makefile | |
| +++ b/util/uno/Makefile | |
| @@ -29,7 +29,7 @@ sun: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -fomit-frame-pointer -Wunused -I../../include" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| linux: | |
| - @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| + @$(MAKE) CC=gcc CFLAGS="-m32 -O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao" $(EXE) | |
| solaris: | |
| @$(MAKE) CC=gcc CFLAGS="-O2 -pipe -I../../include -fomit-frame-pointer -Wunused" LDFLAGS="-s -L../../lib -ldao -lsocket -lnsl -L/usr/ucblib -lucb" $(EXE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment