Bug 770 - configure --without-rpath is incomplete
Summary: configure --without-rpath is incomplete
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: SPARC Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-08 09:59 AEDT by Dan Astoorian
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
fix --without-rpath (1.50 KB, patch)
2003-12-08 10:20 AEDT, Tim Rice
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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