[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Makefile.am issue (and patch)

From: Brian Silverman
Subject: Makefile.am issue (and patch)
Date: Thu, 03 Jul 2008 13:10:25 -0400
User-agent: Thunderbird (Windows/20071031)

I'm having a small issue with make install of coreutils. I've included below a patch that solves my problem.

I am using coreutils-6.12, and building it under cygwin, and I'm cross-compiling it to a PPC-440.

Here's my build steps:
   ./configure  --host=powerpc-440-linux-gnu --prefix="`pwd`/__images"
   make install

configure and make work fine.  But make install fails with:
   ./ginstall: ./ginstall: cannot execute binary file

To fix this, I'm using the patch below. Note that the change in my patch applies to code from a very recent checkin: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=9d595099372e2eabbecce2f303058743e93f0748

Perhaps my issue is only related to cross-compiling? Or is there a better fix I should use?

Here's my patch:
diff -urN coreutils-6.12/src/Makefile.am coreutils-6.12.new/src/Makefile.am
--- coreutils-6.12/src/Makefile.am    2008-05-31 14:15:33.000000000 -0400
+++ coreutils-6.12.new/src/Makefile.am 2008-07-03 12:46:25.260074200 -0400
@@ -434,7 +434,7 @@
    @case '$(program_transform_name):$(EXEEXT)' in        \
      's,x,x,:') cu=cu-;; *) cu= ;; esac;            \
-    $(MAKE) $(AM_MAKEFLAGS) binPROGRAMS_INSTALL=./ginstall    \
+    $(MAKE) $(AM_MAKEFLAGS) \
    $(MAKE) $(AM_MAKEFLAGS) install-exec-hook

Brian Silverman
Concept X, LLC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]