Opened 4 years ago

Closed 4 years ago

#59844 closed defect (worksforme)

ruby19 ruby20 ruby21 ruby22 ruby23 ruby24 ruby25 ruby26: --with-rubylibprefix no worky

Reported by: RJVB (René Bertin) Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ruby19 ruby20 ruby21 ruby22 ruby23 ruby24 ruby25 ruby26

Description

Has anyone noticed that the --with-rubylibprefix configure argument doesn't have the entire intended effect? On Mac it does create the expected libruby linker/interface library (librubyX.Y.dylib) but static library name is not affected (on Linux, neither are). On Mac, conflicts are avoided because the library versioning comes between the library name and the extension, also for the static library - and pkg-config includes the version string in the -l argument (e.g. -lruby.2.3.0).

This does make me wonder if the argument is used the way it should...

Change History (2)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: kimuraw removed
Owner: set to kimuraw
Port: ruby19 ruby20 ruby21 ruby22 ruby23 ruby24 ruby25 ruby26 added
Status: newassigned
Summary: port:rubyxy : --with-rubylibprefix no workyruby19 ruby20 ruby21 ruby22 ruby23 ruby24 ruby25 ruby26: --with-rubylibprefix no worky

comment:2 Changed 4 years ago by kimuraw (kimura wataru)

Resolution: worksforme
Status: assignedclosed

the "--with-rubylibprefix" means location of ruby's libraries and gems, targets of require in ruby code. the option not affects libruby's filename.

# ruby26 installed with --with-rubylibprefix=/opt/local/lib/libruby2.6
  /opt/local/lib/ruby2.6/2.6.0/... : .rb libraries and .bundle extensions
  /opt/local/lib/ruby2.6/gems/... : rubygems
Note: See TracTickets for help on using tickets.