diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-29 23:44:26 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-29 23:44:26 +0800 |
commit | bf317a83fd06ffd9a0cf90e15c4f708458d0b496 (patch) | |
tree | 01522144a238acce99db8b238499c9a921a820fd | |
parent | 4d1d40e94f273af30d4ca56477bf69132f5294a0 (diff) | |
download | pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.gz pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.bz2 pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.lz pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.xz pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.tar.zst pttbbs-bf317a83fd06ffd9a0cf90e15c4f708458d0b496.zip |
Make makefile work under linux.
Edit FAQ about -liconv, -lhz and shmmax.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | docs/FAQ | 41 | ||||
-rw-r--r-- | innbbsd/Makefile | 16 |
2 files changed, 34 insertions, 23 deletions
@@ -25,19 +25,16 @@ $Id$ ------------------------------------------------------------------------------ 3.�[�j shared-memory -in FreeBSD: �Цb /etc/sysctl.conf �̭��[�J -kern.ipc.shmmax=104857600 -kern.ipc.shmall=25600 +in FreeBSD: + kern.ipc.shmmax=104857600 + kern.ipc.shmall=25600 +in Linux: + kernel.shmmax=104857600 + kernel.shmall=25600 �o��Ӽƭȥi�����n�վ�, �b���s�}����|�ͮ�. -in Linux: -�k�@: �� sysctl �� kernel.shmmax -�k�G: �b kernel source��X (�i�� grep -R ) - #define SHMMAX �N��[�j - ���s make kernel�åB reboot - ------------------------------------------------------------------------------ 4.�]�w group �H FreeBSD����, �z���n��� /etc/group �o���ɮ�, @@ -116,22 +113,32 @@ Mbbsmail, P=/home/bbs/bin/bbsmail, F=lsSDFMhPu, U=bbs, S=10,R=20/40, �Y�z�w�g�w�ˤF libiconv ���L�٬O�䤣��, �бN�� lib�Ҧb�� path (/usr/local/lib in FreeBSD) -�[�� innbbsd/Makefile �� LDFLAGS��, ex: +�[�� innbbsd/Makefile �� LDFLAGS �� (line 43) LDFLAGS+= -liconv �令: LDFLAGS+= -liconv -L/usr/local/lib +�b Linux �ٹҤU libiconv �Q�]�t�b libc ��, �ҥH -liconv �O���ݭn�� +�бN pttbbs.mk �� (line 10) + PTT_LIBS= -lcrypt -lhz -liconv +�令: + PTT_LIBS= -lcrypt -lhz +�ñN innbbsd/Makefile �� LDFLAGS (line 43) + LDFLAGS+= -liconv +�R�� + ------------------------------------------------------------------------------ 8./usr/libexec/elf/ld: cannot find -lhz -Ptt �䴩���餤����²�餤�媺�\�� -�Y�z�}�ҤF�o�ӿﶵ (#define GB_CONVERT) -�Х��w�� autoconvert +Ptt �䴩�c�餤����²�餤��P UTF-8 ���\�� +�Y�z�}�ҤF�o�ӿﶵ (#define CONVERT) +�Цw�� autoconvert (/usr/ports/chinese/autoconvert in FreeBSD package libhz0 in Debian/Linux ) -�M��b mbbsd/Makefile �� LDFLAGS �� - LDFLAGS+= -liconv -�[�W - LDFLAGS+= -liconv -lhz + +�Y���Q�}�Ҧ��ﶵ �Эק� pttbbs.mk (line 10) + PTT_LIBS= -lcrypt -lhz -liconv +�令: + PTT_LIBS= -lcrypt -liconv ------------------------------------------------------------------------------ 9. �p������ ssh�覡�i bbs���αK�X diff --git a/innbbsd/Makefile b/innbbsd/Makefile index 1422ec65..61f97361 100644 --- a/innbbsd/Makefile +++ b/innbbsd/Makefile @@ -25,17 +25,21 @@ OPT= -O -s -pipe -fomit-frame-pointer BBS_DEP = MapleBBS BBS_UTIL = $(BBS_SRC)/util -BBS_REC = $(BBS_UTIL)/util_record.o $(BBS_UTIL)/util_cache.o $(BBS_UTIL)/util_passwd.o $(BBS_UTIL)/util_stuff.o $(BBS_UTIL)/util_var.o +BBS_REC = $(BBS_UTIL)/util_record.o $(BBS_UTIL)/util_cache.o \ + $(BBS_UTIL)/util_passwd.o $(BBS_UTIL)/util_stuff.o \ + $(BBS_UTIL)/util_var.o $(BBS_REC_EXTRA_$(OSTYPE)) + +BBS_REC_EXTRA_Linux = $(BBS_UTIL)/util_osdep.o ######################### # ############### DEBUGOBJ = /usr/lib/debug/mallocmap.o CFLAGS+= -c -I. -I$(BBS_SRC)/include -I$(BBS_SRC)/mbbsd -D$(BBS_DEP) \ --I/usr/local/include -L/usr/local/lib \ -$(EXTRAFLAGS) -DDBZDEBUG -DBBSHOME='"$(BBSHOME)"' \ --D_PATH_BBSHOME=\"$(BBSHOME)\" \ --DVERSION=\"$(VERSION)\" -DADMINUSER=\"$(ADMINUSER)\" + -I/usr/local/include -L/usr/local/lib \ + $(EXTRAFLAGS) -DDBZDEBUG -DBBSHOME='"$(BBSHOME)"' \ + -D_PATH_BBSHOME=\"$(BBSHOME)\" \ + -DVERSION=\"$(VERSION)\" -DADMINUSER=\"$(ADMINUSER)\" LDFLAGS+= -liconv # #################################################### @@ -79,7 +83,7 @@ sun: aix: @$(MAKE) CC=cc EXTRAFLAGS="-DMMAP -DGETRUSAGE -DAIX -DSYSV" target -linux: +Linux: @$(MAKE) EXTRAFLAGS="-DLINUX -DGETRUSAGE" target hpux: |