Issue #7737 has been updated by nobu (Nobuyoshi Nakada).

File bug-7737.diff added

Seems RPATHFLAG unnecessary for extconf.rb.

Attaching newer patch.
----------------------------------------
Bug #7737: problem with generated rbconfig.rb for Haiku
https://bugs.ruby-lang.org/issues/7737#change-35688

Author: paul0 (Paulo Geyer)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-01-23 trunk 38898) [i586-haiku]


After compiling ruby 2.0.0 for Haiku, I couldn't install gems with native extensions, found something wrong with rbconfig.rb

  CONFIG["RPATHFLAG"] = " -Wl,-R%1$-s"

changing that to:
  CONFIG["RPATHFLAG"] = ""

made possible to rubygems create native extensions


-- 
http://bugs.ruby-lang.org/