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)
- Lua, Javascript and Assembly support HOT 3
- Exam mode batterie drain HOT 2
- Python speed improvement
- Discriminant for quadratic equation incorrectly computed HOT 2
- Calculate function : Multiple screen (Tab or other)
- Absolute value of subtraction of 2 random numbers is sometimes negative HOT 5
- Approximate equality is hurtful
- Expression rewriting is too clever by half
- tan() has degraded precision in the Calculation app. HOT 1
- area between polar curves and angle between vector
- possible improvement: Nuclide Chart
- Inconsistent display/handling of integers
- NumWorks/Python does not compute the shortest string that round-trips
- An application template for epsilon 20
- new OS module and better Kandinsky HOT 3
- Reset with the sequences app HOT 2
- Statistic mode HOT 1
- UK mode regression HOT 2
- Calculate normal in graphing mode HOT 2
- When charging, the LED doesn't change to green even if it has charged for a long time HOT 2
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.