summaryrefslogtreecommitdiff
path: root/ext/fiddle/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-22 03:42:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-22 03:42:13 +0000
commit458cffce1a42a0dda7832f69f386e7abac8b621f (patch)
treeaa9ee60bb5fcd382b86c46e5d9f1540935c675f6 /ext/fiddle/depend
parent4e9f6719dd1b203fc21a34b393ed9df2e63cc35a (diff)
extconf.rb: libffi with libruby
* ext/fiddle/extconf.rb: link libffi with libruby for symbols provided by ruby on some platforms, e.g. alloca. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/depend')
-rw-r--r--ext/fiddle/depend3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/fiddle/depend b/ext/fiddle/depend
index 4459ddd770..89623db708 100644
--- a/ext/fiddle/depend
+++ b/ext/fiddle/depend
@@ -4,7 +4,8 @@ CONFIGURE_LIBFFI = \
cd $(LIBFFI_DIR) && \
$(LIBFFI_CONFIGURE) --disable-shared \
--host=$(LIBFFI_ARCH) --enable-builddir=$(arch) \
- CC="$(CC)" CFLAGS="$(LIBFFI_CFLAGS)"
+ CC="$(CC)" CFLAGS="$(LIBFFI_CFLAGS)" \
+ LD="$(LD)" LDFLAGS="$(LIBFFI_LDFLAGS)"
$(OBJS): $(HDRS) $(ruby_headers) \
$(hdrdir)/ruby/io.h \