https://sourceware.org/bugzilla/show_bug.cgi?id=30082

            Bug ID: 30082
           Summary: ld-bootstrap/bootstrap.exp should use LDFLAGS not
                    CFLAGS
           Product: binutils
           Version: 2.41 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: romain.geissler at amadeus dot com
  Target Milestone: ---

Hi,

I have a new test failure when moving from binutils 2.39 to 2.40, all the
bootstap tests fail. Checking the logs, it fails because the lib "-lzstd" can't
be found at link time.

Checking the code in ld-bootstrap/bootstrap.exp it seems these bootstrap link
tests are done using $CFLAGS, while in my case the right "-L/path/to/libzsd"
are in $LDFLAGS. Isn't it strange that bootstrap.exp uses CFLAGS while it
doesn't compile anything, but tries to link things ? I tried to replace CFLAGS
by LDFLAGS, but it seems LDFLAGS isn't passed to DejaGNU's runtest, so it
doesn't work either. Instead I have copied my "-L" flag from LDFLAGS to CFLAGS,
but it seems more a workaround than an actual fix.

Cheers,
Romain

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to