Comments (4)
do you support gfortran cross compiles
No, Java and Fortran are not really a goal of OSXCross.
However, you can adjust build_gcc.sh
to gain Fortran/Java support:
--enable-languages=c,c++,objc,obj-c++,fortran,java \
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar \
--enable-libjava-multilib \
--enable-static-libjava \
Building libjava
fails, similar to:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42311.
You may be able to get around it by setting GCC_FOR_ECJX
before configuring.
Fortran seems to work.
is it possible to setup a minimal cross compile environment that only provides java/veclib?
Well, this is a little bit complicated, you'll always need clang
to build cctools/ld64 (ld64 won't build with gcc) and the Mac OS X SDK to build gcc itself (and afterwards for linking, libc, ...).
from osxcross.
ok, thanks.
btw, I'm not asking for java support in gcc, only fortran and c. It's the java .so
that I'm linking to (i.e. jni), not the gnu java crap.
from osxcross.
Yes, gcc and gfortran are working, just adjust the languages to "c,c++,fortran" in build_gcc.sh.
You can get rid of c++ too, but be sure to remove the g++ tests first, look for test_compiler in build_gcc.sh.
from osxcross.
sweet, I might give it a shot.
from osxcross.
Related Issues (20)
- GCC Built by ./build_gcc.sh o32-gcc and o32-g++ only target x86_64 HOT 1
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
- Not working when CMAKE_GENERATOR=Ninja
- Request: Set osxcross-specific compiler path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osxcross.