X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CCDEE52A57 for ; Sat, 26 Mar 2005 21:46:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51761-01 for ; Sat, 26 Mar 2005 21:46:32 +0000 (GMT) Received: from rwcrmhc14.comcast.net (rwcrmhc14.comcast.net [216.148.227.89]) by svr1.postgresql.org (Postfix) with ESMTP id D84E452A43 for ; Sat, 26 Mar 2005 21:46:30 +0000 (GMT) Received: from [192.168.1.5] (c-67-166-250-149.client.comcast.net[67.166.250.149]) by comcast.net (rwcrmhc14) with ESMTP id <2005032621463201400attufe>; Sat, 26 Mar 2005 21:46:32 +0000 Message-ID: <4245D833.3020100@comcast.net> Date: Sat, 26 Mar 2005 15:46:27 -0600 From: Joe Halpin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Problem setting runpath Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.75 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST X-Spam-Level: * X-Archive-Number: 200503/433 X-Sequence-Number: 16931 I'm on Solaris 10 (Intel) using gcc. I'd like to add /usr/local/lib to the built-in runpath. I've tried 1. setting LD_RUN_PATH=/usr/local/lib before running configure (also tried adding this to the command line for configure). 2. Adding LDFLAGS='-Wl,--runpath,/usr/local/lib' to the configure command line. The upshot is that /usr/local/lib doesn't get included in the runpath, and I have to set LD_LIBRARY_PATH to get things to work. I'd rather not do that because this will be used in an environment where users set lots of different LD_LIBRARY_PATH in their shell startup files. I know I can use crle to add /usr/local/lib systemwide, but that makes me nervous, and I'd rather get runpath to work if I can. How can I tell configure to add /usr/local/lib to runpath, and have that built into the executables? Thanks Joe