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
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 @@
install-exec-am:
@case '$(program_transform_name):$(EXEEXT)' in \
's,x,x,:') cu=cu-;; *) cu= ;; esac; \
- $(MAKE) $(AM_MAKEFLAGS) binPROGRAMS_INSTALL=./ginstall \
+ $(MAKE) $(AM_MAKEFLAGS) \
$${cu}install-binPROGRAMS
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
--
Brian Silverman
Concept X, LLC
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils