Date: Tue, 02 Apr 2002 10:59:28 +0900 (JST) From: NINOMIYA Hideyuki <nin@shikoku.ne.jp> To: sobomax@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: Re: about lang/cli problem Message-ID: <20020402.105928.1037128513.nin@smtp.shikoku.ne.jp> In-Reply-To: <20020401.161750.74742875.nin@smtp.shikoku.ne.jp> References: <20020401.161750.74742875.nin@smtp.shikoku.ne.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi I report this, because I got a good solution from one person about this problem. Subject: about lang/cli problem Message-Id: <20020401.161750.74742875.nin@smtp.shikoku.ne.jp> me> These don't work so that a shared libraries is referred by me> absolute path. I worked to solve this problem by oneself, me> but cannot get a solution yet. me> me> Will there be a good solution method ? This is the patch which KUBOTA-san made ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- diff -urN cli.orig/Makefile cli/Makefile --- cli.orig/Makefile Sun Mar 31 19:53:13 2002 +++ cli/Makefile Tue Apr 2 04:53:13 2002 @@ -36,6 +36,9 @@ post-extract: @${CHMOD} 755 ${WRKSRC}/env.sh +post-patch: + @${PERL} -pi -e "s|%%LD_RUNPATH%%|${PREFIX}/cli-${PORTVERSION}|" ${WRKSRC}/makefile.common.in ${WRKSRC}/rotorenv/bin/makefile.def + post-configure: @for file in `/usr/bin/find ${WRKSRC} -type f -name "makefile*"`; do \ ${LN} -sf $${file} `${ECHO_CMD} $${file} | ${SED} 's|makefile|Makefile|'` ; \ diff -urN cli.orig/files/patch-clr::src::debug::cordbg::makefile.inc cli/files/patch-clr::src::debug::cordbg::makefile.inc --- cli.orig/files/patch-clr::src::debug::cordbg::makefile.inc Thu Jan 1 09:00:00 1970 +++ cli/files/patch-clr::src::debug::cordbg::makefile.inc Tue Apr 2 06:21:38 2002 @@ -0,0 +1,13 @@ +--- clr/src/debug/cordbg/makefile.inc.orig Tue Apr 2 06:18:37 2002 ++++ clr/src/debug/cordbg/makefile.inc Tue Apr 2 06:18:33 2002 +@@ -18,9 +18,7 @@ + DYNLIB_SUFFIX=lib + !endif + +-UMLIBS=$(CORLIBS)\$(DYNLIB_PREFIX)rotor_pal.$(DYNLIB_SUFFIX) \ +- $(CORLIBS)\$(DYNLIB_PREFIX)rotor_palrt.$(DYNLIB_SUFFIX) \ +- $(TARGETLIBS) ++UMLIBS= -lrotor_pal -lrotor_palrt $(TARGETLIBS) + + MACHINE_TARGETLIBS= + diff -urN cli.orig/files/patch-clr::src::tools::clix::makefile.inc cli/files/patch-clr::src::tools::clix::makefile.inc --- cli.orig/files/patch-clr::src::tools::clix::makefile.inc Thu Jan 1 09:00:00 1970 +++ cli/files/patch-clr::src::tools::clix::makefile.inc Tue Apr 2 06:22:31 2002 @@ -0,0 +1,11 @@ +--- clr/src/tools/clix/makefile.inc.orig Tue Apr 2 06:17:29 2002 ++++ clr/src/tools/clix/makefile.inc Tue Apr 2 06:17:23 2002 +@@ -17,7 +17,6 @@ + DYNLIB_SUFFIX=lib + !endif + +-UMLIBS=$(CORLIBS)\$(DYNLIB_PREFIX)rotor_pal.$(DYNLIB_SUFFIX) \ +- $(CORLIBS)\$(DYNLIB_PREFIX)rotor_palrt.$(DYNLIB_SUFFIX) ++UMLIBS= -lrotor_pal -lrotor_palrt + + MACHINE_TARGETLIBS= diff -urN cli.orig/files/patch-clr::src::tools::sos::makefile.inc cli/files/patch-clr::src::tools::sos::makefile.inc --- cli.orig/files/patch-clr::src::tools::sos::makefile.inc Thu Jan 1 09:00:00 1970 +++ cli/files/patch-clr::src::tools::sos::makefile.inc Tue Apr 2 06:23:13 2002 @@ -0,0 +1,11 @@ +--- clr/src/tools/sos/makefile.inc.orig Tue Apr 2 06:17:05 2002 ++++ clr/src/tools/sos/makefile.inc Tue Apr 2 06:17:01 2002 +@@ -17,7 +17,6 @@ + DYNLIB_SUFFIX=lib + !endif + +-UMLIBS=$(CORLIBS)\$(DYNLIB_PREFIX)rotor_pal.$(DYNLIB_SUFFIX) \ +- $(CORLIBS)\$(DYNLIB_PREFIX)rotor_palrt.$(DYNLIB_SUFFIX) ++UMLIBS= -lrotor_pal -lrotor_palrt + + MACHINE_TARGETLIBS= diff -urN cli.orig/files/patch-makefile.common.in cli/files/patch-makefile.common.in --- cli.orig/files/patch-makefile.common.in Sat Mar 30 16:26:30 2002 +++ cli/files/patch-makefile.common.in Tue Apr 2 04:53:13 2002 @@ -1,8 +1,5 @@ - -$FreeBSD: ports/lang/cli/files/patch-makefile.common.in,v 1.1 2002/03/30 07:26:30 sobomax Exp $ - ---- makefile.common.in.orig Fri Mar 22 03:48:17 2002 -+++ makefile.common.in Fri Mar 29 00:54:26 2002 +--- makefile.common.in.orig Fri Mar 22 10:48:17 2002 ++++ makefile.common.in Mon Apr 1 23:25:42 2002 @@ -38,7 +38,7 @@ CPP = @CPP@ # The flags should be adjusted based on the compiler, but we @@ -12,3 +9,12 @@ # Linker information PAL_LIB = rotor_pal +@@ -46,7 +46,7 @@ + LIB_SUFFIX = .so + PAL_LIB_FILE = $(LIB_PREFIX)$(PAL_LIB)$(LIB_SUFFIX) + ROTOR_LIBS = -l$(PAL_LIB) +-LDFLAGS = -L$(TARGETCOMPLUS) ++LDFLAGS = -L$(TARGETCOMPLUS) -R%%LD_RUNPATH%% + # This should come last in the list of parameters to gcc or ld + # because otherwise /usr/lib might be searched when it shouldn't + # be. diff -urN cli.orig/files/patch-rotorenv::bin::makefile.def cli/files/patch-rotorenv::bin::makefile.def --- cli.orig/files/patch-rotorenv::bin::makefile.def Sat Mar 30 16:26:30 2002 +++ cli/files/patch-rotorenv::bin::makefile.def Tue Apr 2 04:53:13 2002 @@ -1,9 +1,17 @@ - -$FreeBSD: ports/lang/cli/files/patch-rotorenv::bin::makefile.def,v 1.1 2002/03/30 07:26:30 sobomax Exp $ - ---- rotorenv/bin/makefile.def.orig Fri Mar 22 03:48:24 2002 -+++ rotorenv/bin/makefile.def Fri Mar 29 20:21:35 2002 -@@ -1428,7 +1428,7 @@ +--- rotorenv/bin/makefile.def.orig Fri Mar 22 10:48:24 2002 ++++ rotorenv/bin/makefile.def Tue Apr 2 01:12:30 2002 +@@ -142,6 +142,10 @@ + + !INCLUDE makefile.env + ++!ifdef PLATFORM_UNIX ++LINKER_FLAGS = -R%%LD_RUNPATH%% ++!endif ++ + # + # IDL/RDL/TDL build rules. + # +@@ -1428,7 +1432,7 @@ !ENDIF !ifdef PLATFORM_UNIX ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- This problem worked out a solution with this patch. ---- *************************************************************** * This message is a thing by output of automatic translation. * * Therefore it will be for there to be a lot of funny parts. * * Please approve it. * *************************************************************** NINOMIYA(family name) Hideyuki(fast name) @ ehime japan mailto:nin@shikoku.ne.jp mailto:nin@Jp.FreeBSD.org PGP-Fingerprint:6C59 EC08 5B23 6490 44D0 7CD3 DA40 219F 7114 8553 PGP-Public-Key: http://user.shikoku.ne.jp/~nin/pgp/public-key.txt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020402.105928.1037128513.nin>