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]

tui/1878: GDB build ignores user-provided parameters.


>Number:         1878
>Category:       tui
>Synopsis:       GDB build ignores user-provided parameters.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 24 00:38:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     Bob Friesenhahn
>Release:        6.3
>Organization:
>Environment:
Solaris 9
>Description:
GDB build ignores LDFLAGS and other configuration settings. Fails to adhere to GNU standards.
LDFLAGS='-L/usr/local/sparc64/lib -R/usr/local/sparc64/lib' CC=gcc-64 ./configure
results in
gcc-64 -O2 -g        \
        -o gdb gdb.o libgdb.a \
           ../bfd/libbfd.a ../readline/libreadline.a ../opcodes/libopcodes.a  ../libiberty/libiberty.a     -ldl -lcurses -lsocket -lnsl -lm -liconv ../libiberty/libiberty.a  
ld: fatal: file /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/../../../libiconv.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to gdb
>How-To-Repeat:
Configure with extra environment parameters as described by GNU installation standards.  Observe that 'make' executes additional configures without passing same options.  Observe that final link does not include any user-requested linker options.
>Fix:
Pass CC, LD, LDFLAGS, LIBS, etc., to suppordinate configures and builds as per GNU coding standards.
>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]