Issue #2531 has been updated by Luis Lavena.

File 0002-Fix-2531-by-backporting-changes-to-fake.rb-required-.patch adde=
d

Hello,

Since r26205 is too big to backport, I decided to recreate fake.rb using =
the template/fake.rb.in found in trunk. Find attached the proposed patch.=


This change indeed solved the dl cross-compilation issue I was having.

Please consider it for inclusion.

Thank you.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2531

----------------------------------------
http://redmine.ruby-lang.org
RnJvbSA2ZmYzMjE1Y2U5YmUyNjNiMTRmMjkyZDU1MzYyYWY5NmU4ZjQ0ODJh
IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBMdWlzIExhdmVuYSA8
bHVpc2xhdmVuYUBnbWFpbC5jb20+CkRhdGU6IFN1biwgMTIgU2VwIDIwMTAg
MTc6NDA6NDkgLTAzMDAKU3ViamVjdDogW1BBVENIIDIvMl0gRml4ICMyNTMx
IGJ5IGJhY2twb3J0aW5nIGNoYW5nZXMgdG8gZmFrZS5yYiByZXF1aXJlZCBm
b3Igc3VjY2Vzc2Z1bCBjcm9zcy1jb21waWxhdGlvbgoKLS0tCiBNYWtlZmls
ZS5pbiAgICAgICAgIHwgICAxOSArKystLS0tLS0tLS0tLS0tLS0tCiB0ZW1w
bGF0ZS9mYWtlLnJiLmluIHwgICA0MyArKysrKysrKysrKysrKysrKysrKysr
KysrKysrKysrKysrKysrKysrKysrCiAyIGZpbGVzIGNoYW5nZWQsIDQ2IGlu
c2VydGlvbnMoKyksIDE2IGRlbGV0aW9ucygtKQogY3JlYXRlIG1vZGUgMTAw
NjQ0IHRlbXBsYXRlL2Zha2UucmIuaW4KCmRpZmYgLS1naXQgYS9NYWtlZmls
ZS5pbiBiL01ha2VmaWxlLmluCmluZGV4IDY1NmFlOTAuLjZlM2FmNGIgMTAw
NjQ0Ci0tLSBhL01ha2VmaWxlLmluCisrKyBiL01ha2VmaWxlLmluCkBAIC0x
MjIsMjIgKzEyMiw5IEBAICQoTElCUlVCWV9TTyk6CiAJCQkJCQ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