Date: Thu, 9 Jul 1998 10:36:21 +0900 (JST) From: ohashi@mickey.ai.kyutech.ac.jp (Takeshi Ohashi) To: mauri@krabi.mbp.ee Cc: current@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: crt0.o Message-ID: <199807090136.KAA01795@ateken2.mickey.ai.kyutech.ac.jp> In-Reply-To: Your message of "Wed, 8 Jul 1998 18:40:52 %2B0300 (EEST)". <Pine.BSF.3.96.980708183633.270A-100000@krabi.mbp.ee>
next in thread | previous in thread | raw e-mail | index | archive | help
<Pine.BSF.3.96.980708183633.270A-100000@krabi.mbp.ee>
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-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807090136.KAA01795>
