octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #45082] mxe native build fails at gmp


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #45082] mxe native build fails at gmp
Date: Tue, 12 May 2015 23:38:58 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36

Follow-up Comment #4, bug #45082 (project octave):

I have made quick two hacks and gmp build was successful

hack 1 to the Makefile generated after mxe condfigure


--- a/Makefile    2015-05-12 14:00:52 +0900
+++ b/Makefile    2015-05-13 07:41:55 +0900
@@ -66,7 +66,7 @@
     TARGET := i686-w64-mingw32
   endif
 endif
-BUILD_SYSTEM := $(shell tools/config.guess)
+BUILD_SYSTEM := i686-w64-mingw32

 # Enable shared or static libs, or perhaps both.  Probably it doesn't
 # make sense to disable both...


second hack is for gmp mislead ad 64 bit mode so I hacked gmp.mk as:


--- a/src/gmp.mk  2015-05-12 13:47:23 +0900
+++ b/src/gmp.mk  2015-05-13 08:11:13 +0900
@@ -15,7 +15,7 @@
     $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD='$(MXE_CC)' CCAS='gcc -c'
ac_cv_func_memset='yes'
     COMMA := ,
 else
-    $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD=gcc
+    $(PKG)_CONFIGURE_OPTIONS := CC_FOR_BUILD=gcc CFLAGS='-O2 -m32'
CXXFLAGS='-O2 -m32'  ABI=32
 endif

 define $(PKG)_UPDATE


Of course, I know that the above are the temporal hacks.

Thanks for your attention

Tatsuro  

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45082>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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