1From 03700ec256789e02de20b58bca080c6fef592336 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 30 Sep 2019 16:57:01 +0100
4Subject: [PATCH] extmk: fix cross-compilation of external gems
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Note that I (André) didn't actually write this patch, I
10only updated it so that git-am works.
11
12Upstream-Status: Pending
13Signed-off-by: André Draszik <andre.draszik@jci.com>
14---
15 ext/extmk.rb | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/ext/extmk.rb b/ext/extmk.rb
19index 8b6b365..3048f75 100755
20--- a/ext/extmk.rb
21+++ b/ext/extmk.rb
22@@ -434,8 +434,8 @@ else
23 end
24 $ruby = [$ruby]
25 $ruby << "-I'$(topdir)'"
26+$ruby << "-I'$(top_srcdir)/lib'"
27 unless CROSS_COMPILING
28-  $ruby << "-I'$(top_srcdir)/lib'"
29   $ruby << "-I'$(extout)/$(arch)'" << "-I'$(extout)/common'" if $extout
30   ENV["RUBYLIB"] = "-"
31 end
32