Project

General

Profile

Actions

Bug #10830

closed

LDFLAGS not honoured when linking libruby.so

Added by dagobert (Dagobert Michelsen) about 9 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
both 2.1.5 and 2.2.0
[ruby-core:68025]

Description

During configure the libraries are detected with LDFLAGS used e.g. to defined a search direcrtory with -L. During linking of library.so in Makefile.in the line

$(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(DTRACE_OBJ) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@

does not use LDFLAGS to find linked libraries (in my case libgmp.so not in a standard place).

When changed to this line linking works:

$(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(DTRACE_OBJ) $(LDFLAGS) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #11863: configure/makefile needs to follow the standard behaviorClosednobu (Nobuyoshi Nakada)Actions
Actions #1

Updated by vo.x (Vit Ondruch) over 7 years ago

  • Is duplicate of Bug #11863: configure/makefile needs to follow the standard behavior added
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Open to Closed

Applied in changeset r56472.


configure.in: fallback DLDFLAGS to LDFLAGS

  • configure.in (DLDFLAGS): fallback to LDFLAGS.
    [ruby-core:72444] [Bug #11863]
  • configure.in (LIBRUBY_DLDFLAGS): fallback to DLDFLAGS.
Actions

Also available in: Atom PDF

Like0
Like0Like0