Comments (4)
Adding -fPIC
to CFLAGS and CXXFLAGS make it build and link (and it runs).
I didn't tryied to build for the final target, cross-compiled, so I don't know if it would break that.
from epsilon.
update: it definitely mess with the real ARM version (doesn't boot and switch to DFU)
from epsilon.
so you mean that adding the flags allow simulator build (I tested it and it works) but this broke the device firmware build ?
from epsilon.
Yes, adding -fPIC
to the build for ARM makes it doesn't boot.
Currently the fix I'm using is:
diff --git a/Makefile b/Makefile
index 37639cd8..b12b0dfe 100644
--- a/Makefile
+++ b/Makefile
@@ -25,8 +25,8 @@ SFLAGS += -Wall
SFLAGS += -MD -MP
# Language-specific flags
-CFLAGS = -std=c99
-CXXFLAGS = -std=c++11 -fno-exceptions -fno-rtti -fno-threadsafe-statics
+CFLAGS += -std=c99
+CXXFLAGS += -std=c++11 -fno-exceptions -fno-rtti -fno-threadsafe-statics
products :=
diff --git a/build/platform.simulator.mak b/build/platform.simulator.mak
index 91eaeafe..9ed827fa 100644
--- a/build/platform.simulator.mak
+++ b/build/platform.simulator.mak
@@ -3,3 +3,5 @@ USE_LIBA = 0
EXE = elf
OS_WITH_ONBOARDING_APP ?= 0
OS_WITH_SOFTWARE_UPDATE_PROMPT ?= 0
+CFLAGS = -fPIC
+CXXFLAGS = -fPIC
from epsilon.
Related Issues (20)
- Stange result while sum up 2 percentage numbers HOT 2
- Conserve Search Intervals in Equations HOT 1
- Can't iterate over a List in function mode HOT 1
- Gamma vs Factorial HOT 1
- Impossible, for now, to use an f before a string in a print. for example : print(f"Hello {name}, how are you ?") HOT 3
- Intersection points between a function and its derivative HOT 3
- Battery Percentage HOT 1
- Convert speeds in the toolbox HOT 1
- Please retain prompt to enter range for equation in version 23
- Transfer files between calculators HOT 1
- Fractions/exact value in Sequences and Statistics app. HOT 2
- Exact Solutions to Cubics HOT 1
- Flashage Epsilon modifier SDK HOT 1
- Probleme flashage sdk numworks HOT 1
- Floating point issue HOT 2
- Erreur de calcul dans l'application suite HOT 1
- Surveying Units HOT 2
- Updating the kandinsky python module
- Suggestion d'implémentation d'un modèle de régression exponentielle HOT 1
- Calcul d'intégrale nulle HOT 1
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 epsilon.