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

Also available in: Atom PDF

Like0
Like0Like0