From 531fa0414590f88288983d676b604ec7263c70bb Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 12 May 2012 09:40:32 +0000 Subject: Workaround for link fail in certain case git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5682 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/Makefile | 2 +- pttbbs/trans/Makefile | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pttbbs/mbbsd/Makefile b/pttbbs/mbbsd/Makefile index 4477a736..0a2ad445 100644 --- a/pttbbs/mbbsd/Makefile +++ b/pttbbs/mbbsd/Makefile @@ -45,7 +45,7 @@ LDFLAGS+=-Wl,--sort-common LDFLAGS+= -L$(SRCROOT)/common/bbs -L$(SRCROOT)/common/sys \ -L$(SRCROOT)/common/osdep -LDLIBS+= -lcmbbs -lcmsys -losdep +LDLIBS:= -lcmbbs -lcmsys -losdep $(LDLIBS) ####################################################################### # conditional configurations and optional modules diff --git a/pttbbs/trans/Makefile b/pttbbs/trans/Makefile index 0ab85855..44b35a1a 100644 --- a/pttbbs/trans/Makefile +++ b/pttbbs/trans/Makefile @@ -27,9 +27,10 @@ CPROG_WITHOUT_UTIL= \ # 下面這些程式會被 install PROGS= ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${CPP_WITH_UTIL}\ -LDLIBS+=$(SRCROOT)/common/bbs/libcmbbs.a \ - $(SRCROOT)/common/sys/libcmsys.a \ - $(SRCROOT)/common/osdep/libosdep.a +LDLIBS:= -L$(SRCROOT)/common/bbs -lcmbbs \ + -L$(SRCROOT)/common/sys -lcmsys \ + -L$(SRCROOT)/common/osdep -losdep \ + $(LDLIBS) all: $(SRCROOT)/include/var.h ${CPROG_WITH_UTIL} ${CPROG_WITHOUT_UTIL} ${CPP_WITH_UTIL} ${PROGS} -- cgit v1.2.3