Description: Use installed libffi_pic.a
Author: NIIBE Yutaka <gniibe@fsij.org>
Reviewed-By: NIIBE Yutaka <gniibe@fsij.org>
Last-Update: 2010-03-19

--- gauche-c-wrapper-0.6.1.orig/src/Makefile.in
+++ gauche-c-wrapper-0.6.1/src/Makefile.in
@@ -20,9 +20,9 @@ GAUCHE_CONFIG  = @GAUCHE_CONFIG@
 GAUCHE_PACKAGE = @GAUCHE_PACKAGE@
 INSTALL        = @GAUCHE_INSTALL@
 
-CPPFLAGS       = -I./libffi/include -DGAUCHE_API_0_8_8 @CPPFLAGS@
+CPPFLAGS       = -DGAUCHE_API_0_8_8 @CPPFLAGS@
 LDFLAGS        = @LDFLAGS@
-LIBS           = libffi/.libs/libffi.a @LIBS@
+LIBS           = /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libffi_pic.a @LIBS@
 
 YACC           = @YACC@
 
@@ -38,7 +38,7 @@ ARCHFILES = c-ffi.$(SOEXT) c-lex.$(SOEXT
 SCMFILES  = 
 HEADERS   = 
 
-TARGET    = libffi/.libs/libffi.a $(ARCHFILES)
+TARGET    = $(ARCHFILES)
 GENERATED = libffi
 CONFIG_GENERATED = libffi/Makefile Makefile cwcompile
 
