This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1598: LDFLAGS not honored when compiling gdb-6.0


>Number:         1598
>Category:       gdb
>Synopsis:       LDFLAGS not honored when compiling gdb-6.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 27 04:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andy Tsouladze
>Release:        6.0
>Organization:
>Environment:
SunOS sawww 5.8 Generic sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
I was compiling 64-bit gdb-6.0. Most 64-bit shared libs are in /usr/local/lib/sparcv9, but one needed for gdb (libiconv.so) is under /usr/local/lib. During compilation, -R/usr/local/lib/sparcv9 is set automatically, while -R/usr/local/lib is not. This leads to run-time errors. Yes, I know I could use LD_LIBRARY_PATH. However, my goal is to compile programs that do not need it. So before running ./configure, I set memory variable LDFLAGS=-R/usr/local/lib.
This had no effect on the resulting gdb. 
>How-To-Repeat:
You have to have 64-bit tools, and libiconv installed. I guess the problem is not specific to Solaris.
>Fix:
As a workaround, immediately after running ./configure, I edited top-level Makefile to add LDFLAGS=-R/usr/local/lib. This was sufficient.
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]