This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug sim/18762] New: ${LDFLAGS} irgnored when linking sim/arm


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

            Bug ID: 18762
           Summary: ${LDFLAGS} irgnored when linking sim/arm
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
          Assignee: unassigned at sourceware dot org
          Reporter: dilyan.palauzov at aegee dot org
                CC: vapier at gentoo dot org
  Target Milestone: ---

When building within sim/, common/Make-common.in has the recipe:

run$(EXEEXT): $(SIM_RUN_OBJS) libsim.a $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o run$(EXEEXT) \
          $(SIM_RUN_OBJS) libsim.a $(EXTRA_LIBS)

However ${LDFLAGS} is not always substituted from ./configure.  E.g. when
building the ARMurator, LDFLAGS is empty, despite being set for the other
components (e.g. gold).  In turn, linking run ignores ${LDFLAGS}.

Adding

LDFLAGS = @LDFLAGS@

in common/Make-common.in shall solve the problem.

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


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