From: "terceiro (Antonio Terceiro)" Date: 2013-02-23T09:46:39+09:00 Subject: [ruby-core:52721] [ruby-trunk - Bug #7913] `./configure --enable-multiarch` fails Issue #7913 has been updated by terceiro (Antonio Terceiro). File 0001-Fix-build-by-adding-archlibdir.patch added Hi, sorry, but even with this change it sill fails at the linking stage with the same error. The attached patch fixes the problem - I hope I get this one rigtr! :-) ---------------------------------------- Bug #7913: `./configure --enable-multiarch` fails https://bugs.ruby-lang.org/issues/7913#change-36810 Author: terceiro (Antonio Terceiro) Status: Closed Priority: Urgent Assignee: nobu (Nobuyoshi Nakada) Category: Target version: ruby -v: ruby 2.0.0dev (2013-02-22 trunk 39384) Hi, since the changes in bug #7874 `./configure --enable-multiarch` does not work in trunk anymore: $ autoreconf && ./configure --target=x86_64-linux-gnu --enable-multiarch [...] configure: creating ./config.status config.status: creating Makefile config.status: creating ruby-2.0.pc Variable 'archlibdir' not defined in './ruby.tmp.pc' ... and ./configure exits with a failure status (1). The attached patch fixes this by moving the archlibdir variable up in template, pkg-config template so that it is defined at the point of substitution in the LDFLAGS part below. -- http://bugs.ruby-lang.org/