Bug 770

Summary: configure --without-rpath is incomplete
Product: Portable OpenSSH Reporter: Dan Astoorian <djast>
Component: Build systemAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: SPARC   
OS: Solaris   
Attachments:
Description Flags
fix --without-rpath none

Description Dan Astoorian 2003-12-08 09:59:26 AEDT
The --without-rpath flag to ./configure is supposed to mean "Disable auto-added
-R linker paths".  However, the "*-*-solaris*" section in configure.ac contains

    LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
    need_dash_r=1

which includes the -R option unconditionally.

Other places within configure.ac (e.g., when determining linker options for
openssl, zlib, etc.) correctly check whether need_dash_r has been unset via
--without-rpath before including -R options for them.
Comment 1 Tim Rice 2003-12-08 10:20:30 AEDT
Created attachment 508 [details]
fix --without-rpath

Please try this patch.
Comment 2 Dan Astoorian 2003-12-08 12:23:52 AEDT
(My autoconf is ancient; Tim sent me the configure script for 3.7.1p2 produced
with the patch applied.)

The fix seems to work for me: the Makefile is produced without the -R option for
/usr/local/lib, as desired, and the 3.7.1p2 client and server compile and run
okay.  Thanks.
Comment 3 Tim Rice 2003-12-08 13:40:46 AEDT
I've appiead the patch to HEAD and the V_3_7 branch.
Comment 4 Damien Miller 2004-04-14 12:24:20 AEST
Mass change of RESOLVED bugs to CLOSED