From owner-freebsd-ports Wed Jul 8 18:36:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA00993 for freebsd-ports-outgoing; Wed, 8 Jul 1998 18:36:28 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from mickey00.mickey.ai.kyutech.ac.jp (mickey.ai.kyutech.ac.jp [131.206.1.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA00987; Wed, 8 Jul 1998 18:36:21 -0700 (PDT) (envelope-from ohashi@mickey.ai.kyutech.ac.jp) Received: from ateken2.mickey.ai.kyutech.ac.jp (ateken2.mickey.ai.kyutech.ac.jp [131.206.21.141]) by mickey00.mickey.ai.kyutech.ac.jp (8.8.8/3.6W-mickey) with ESMTP id KAA19717; Thu, 9 Jul 1998 10:36:15 +0900 (JST) Received: (from ohashi@localhost) by ateken2.mickey.ai.kyutech.ac.jp (8.8.8/3.5Wpl5) id KAA01795; Thu, 9 Jul 1998 10:36:21 +0900 (JST) Date: Thu, 9 Jul 1998 10:36:21 +0900 (JST) Message-Id: <199807090136.KAA01795@ateken2.mickey.ai.kyutech.ac.jp> To: mauri@krabi.mbp.ee Cc: current@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: crt0.o In-Reply-To: Your message of "Wed, 8 Jul 1998 18:40:52 +0300 (EEST)". From: ohashi@mickey.ai.kyutech.ac.jp (Takeshi Ohashi) X-Mailer: mnews [version 1.20] 1996-12/08(Sun) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org mauri>>Hi mauri>> mauri>>there are some ports which cry for /usr/lib/crt0.o... Some ports, mule-2.3 and emacs20, have same problem. # xemacs-mule seems no problem. AOUT binaries were moved from /usr/lib to /usr/lib/aout. I think ports should use ${LIBDIR}, but bsd.port.mk does not pass it to gmake. Then I made a small patch. --- /usr/share/mk/bsd.port.mk.orig Tue Jun 30 23:19:25 1998 +++ /usr/share/mk/bsd.port.mk Wed Jul 1 18:39:16 1998 @@ -407,7 +407,7 @@ MAKE_FLAGS?= -f MAKEFILE?= Makefile -MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}" +MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" CFLAGS="${CFLAGS}" LIBDIR="${LIBDIR}" .if exists(/usr/bin/fetch) FETCH_CMD?= /usr/bin/fetch For mule-2.3 family, put the following patch for patch-am in mule-2.3-common/patches. --- ./src/s/freebsd.h.orig Wed Jul 1 11:53:10 1998 +++ ./src/s/freebsd.h Wed Jul 1 18:08:33 1998 @@ -34,7 +34,7 @@ #define LIBS_DEBUG -lcrypt #define LIBS_SYSTEM -lutil #define LIBS_TERMCAP -ltermcap -#define LIB_GCC /usr/lib/libgcc.a +#define LIB_GCC ${LIBDIR}/libgcc.a /* Reread the time zone on startup. */ #define LOCALTIME_CACHE @@ -47,7 +47,7 @@ #ifndef NO_SHARED_LIBS #define LD_SWITCH_SYSTEM -e start #define HAVE_TEXT_START /* No need to define `start_of_text'. */ -#define START_FILES pre-crt0.o /usr/lib/crt0.o +#define START_FILES pre-crt0.o ${LIBDIR}/crt0.o #define UNEXEC unexsunos4.o #define RUN_TIME_REMAP For emacs20, swap the following patch and patch-ae. --- src/s/freebsd.h.orig Fri Aug 1 16:17:24 1997 +++ src/s/freebsd.h Wed Jul 1 21:15:32 1998 @@ -45,8 +45,8 @@ #ifndef NO_SHARED_LIBS #define LD_SWITCH_SYSTEM -e start -dc -dp #define HAVE_TEXT_START /* No need to define `start_of_text'. */ -#define START_FILES pre-crt0.o /usr/lib/crt0.o -#define UNEXEC unexsunos4.o +#define START_FILES pre-crt0.o ${LIBDIR}/crt0.o +#define UNEXEC unexfreebsd.o #define RUN_TIME_REMAP #ifndef N_TRELOFF I have not yet done send-pr because the number of ports whitch have USE_GMAKE is 185. I could not check them. -- Takeshi OHASHI, Dept. of A.I., Kyushu Inst. of Tech., Iizuka 820, JAPAN ohashi@mickey.ai.kyutech.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message