diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2011-04-02 21:03:06 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-02 23:09:04 +0200 |
commit | 4fd507e900d3741e6981a853de91944c43c59a0a (patch) | |
tree | 86a680d703ff13b27e9a5f5a19cf2cb5bbed0395 | |
parent | f2cf68a6765c7f2d7442ccdba1c9e9db114828e5 (diff) |
make jamvm build on the Macintosh…
… where uname -p = i386 even on a system that is 64-bit
Apple #FAIL
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
-rw-r--r-- | jtools/jamvm/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/jtools/jamvm/Makefile b/jtools/jamvm/Makefile index f02450fb0..639b7d875 100644 --- a/jtools/jamvm/Makefile +++ b/jtools/jamvm/Makefile @@ -9,12 +9,22 @@ PKG_RELEASE:= 1 PKG_MD5SUM:= 63220327925ace13756ae334c55a3baa PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/} +ifeq (Darwin,${OStype}) +CC_FOR_BUILD:=${CC_FOR_BUILD} -m32 +CXX_FOR_BUILD:=${CXX_FOR_BUILD} -m32 +endif + include ../rules.mk install: ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm $(WRKBUILD)/.configured: ${WRKDIST}/.prepared - (cd $(WRKBUILD); ./configure --prefix=/usr --with-classpath-install-dir=$(STAGING_JAVA_HOST_DIR) ); + cd $(WRKBUILD); env \ + CC='${CC_FOR_BUILD}' \ + CXX='${CXX_FOR_BUILD}' \ + ./configure \ + --prefix=/usr \ + --with-classpath-install-dir=$(STAGING_JAVA_HOST_DIR) touch $@ $(WRKBUILD)/.compiled: ${WRKDIST}/.configured |