From owner-freebsd-questions@FreeBSD.ORG Sun Jul 22 07:27:39 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D78F8106566C for ; Sun, 22 Jul 2012 07:27:39 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 8C4698FC0A for ; Sun, 22 Jul 2012 07:27:39 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SsqZh-00057N-VT for freebsd-questions@freebsd.org; Sun, 22 Jul 2012 09:27:34 +0200 Received: from np-19-75.prenet.pl ([np-19-75.prenet.pl]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 Jul 2012 09:27:33 +0200 Received: from jb.1234abcd by np-19-75.prenet.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 Jul 2012 09:27:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: jb Date: Sun, 22 Jul 2012 07:27:23 +0000 (UTC) Lines: 76 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 79.139.19.75 (Mozilla/5.0 (X11; FreeBSD i386; rv:13.0) Gecko/20100101 Firefox/13.0.1) Subject: Re: Security - linker env variables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2012 07:27:39 -0000 jb gmail.com> writes: > ... > Search results (do it yourself): > $ grep -r LD_RUN_PATH /usr/ports/ This is an output of search done on a fresh copy of /usr/ports/ : /usr/ports/devel/kdevelop/files/patch-appwizard-libtool: runpath_var=LD_RUN_PATH ... /usr/ports/games/xflame/files/patch-aa:! LD_RUN_PATH += /usr/ports/games/xflame/files/patch-aa:! export LD_RUN_PATH /usr/ports/games/xflame/files/patch-aa:! #LD_RUN_PATH += /usr/ports/games/xflame/files/patch-aa:! # export LD_RUN_PATH /usr/ports/japanese/FreeWnn-lib/files/patch-aclocal.m4: runpath_var=LD_RUN_PATH ... /usr/ports/japanese/FreeWnn-lib/files/patch-configure:+ runpath_var=LD_RUN_PATH ... /usr/ports/japanese/FreeWnn-server/files/patch-aclocal.m4: runpath_var=LD_RUN_PATH ... /usr/ports/japanese/FreeWnn-server/files/patch-configure: runpath_var=LD_RUN_PATH ... /usr/ports/japanese/xjtext/files/patch-aa:+ LD_RUN_PATH=${LOCALBASE}/lib/ ${CC} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\ ... /usr/ports/lang/moscow_ml/Makefile: LD_RUN_PATH="${PREFIX}/lib /mosml" /usr/ports/lang/moscow_ml/files/pkg-message.in:Note that this port is build with LD_RUN_PATH=%%PREFIX%%/lib/mosml, ... /usr/ports/math/wingz3/files/Wingz3:# and the ${WINGZ3}/bin/wzenv (yes, it does set the LD_RUN_PATH, /usr/ports/math/wingz3/files/Wingz3:LD_RUN_PATH=$WINGZ3 /lib/$WZPLATFORM:$LD_RUN_PATH ... /usr/ports/print/ghostscript7/files/patch-src:unix-gcc.mak: # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH /usr/ports/print/ghostscript8/files/patch-base-unix-gcc.mak: # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH /usr/ports/print/ghostscript9/files/patch-base-unix-gcc.mak: # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH ... /usr/ports/x11-toolkits/blt/files/patch-src-shared-Makefile.in:+SHLIB_LD_FLAGS = @SHLIB_LD_FLAGS@ @LD_RUN_PATH@ @LIB_SPECS@ $ NOTE that individual port sources (downloaded distfiles) will include LD_RUN_PATH as well, for example: # grep -r LD_RUN_PATH /usr/ports/irc/xchat/work/xchat-2.8.8/ /usr/ports/irc/xchat/work/xchat-2.8.8/configure: runpath_var=LD_RUN_PATH ... /usr/ports/irc/xchat/work/xchat-2.8.8/aclocal.m4: dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH /usr/ports/irc/xchat/work/xchat-2.8.8/aclocal.m4: runpath_var=LD_RUN_PATH ... /usr/ports/irc/xchat/work/xchat-2.8.8/configure.orig: runpath_var= LD_RUN_PATH ... /usr/ports/irc/xchat/work/xchat-2.8.8/configure.bak: runpath_var=LD_RUN_PATH ... /usr/ports/irc/xchat/work/xchat- 2.8.8/config.status:variables_saved_for_relink='PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH' /usr/ports/irc/xchat/work/xchat-2.8.8/config.status:runpath_var='LD_RUN_PATH' /usr/ports/irc/xchat/work/xchat-2.8.8/libtool:variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" /usr/ports/irc/xchat/work/xchat-2.8.8/libtool:runpath_var=LD_RUN_PATH # jb