bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/3631] New: bfd/archive64.c is compiled unconditionally eve


From: uwe at NetBSD dot org
Subject: [Bug binutils/3631] New: bfd/archive64.c is compiled unconditionally even for 32-bit targets
Date: 1 Dec 2006 22:09:04 -0000

bfd/archive64.c is always compiled even for 32-bit targets that don't need it.

configure sets bfd_libs to either

    bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'

or

    bfd_libs='$(BFD32_LIBS)'

and that's propagated to the bfd/Makefile as

    BFD_LIBS = @bfd_libs@

but this make variable seems unused.

I'm not very familair with automake, but I think that instead 

    libbfd_la_SOURCES = $(BFD32_LIBS_CFILES) $(BFD64_LIBS_CFILES)

(where BFD64_LIBS_CFILES = archive64.c) is used to determine which files
to compile, and so archive64.c is always picked up.

Found this with 2.16.1 and confirmed on HEAD.  This bug has been about since
automake'ification, I guess.

-- 
           Summary: bfd/archive64.c is compiled unconditionally even for 32-
                    bit targets
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P3
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: uwe at NetBSD dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: i386--netbsdelf
  GCC host triplet: i386--netbsdelf
GCC target triplet: i386--netbsdelf


http://sourceware.org/bugzilla/show_bug.cgi?id=3631

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]