eclipse-threadx / threadx

Eclipse ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/threadx/index.md
MIT License
2.87k stars 782 forks source link

[General Question] Regarding -fpic flag #222

Closed qasim-ublox closed 1 year ago

qasim-ublox commented 1 year ago

Toolchain : GCC-ARM

Hi, I've seen that -fpic flag is being used in batch script files for GNU port, but I don't see the flag in toolchain file?

goldscott commented 1 year ago

What batch script files are you seeing that flag, and what toolchain files are you not seeing it?

qasim-ublox commented 1 year ago

For example, here it is being used. But here in the toolchain file it is not used.

goldscott commented 1 year ago

That batch file is for ThreadX Modules - they need to be position independent. The cmake file is for building normal ThreadX - this normally is not position independent.

goldscott commented 1 year ago

I'll close this ticket now. If you have further questions, feel free to re-open.