# DietPi how to cross compile customized c software package?

**URL:** https://dietpi.com/forum/t/dietpi-how-to-cross-compile-customized-c-software-package/5301
**Category:** General Discussion
**Created:** [11 May 2021 23:51 UTC](https://dietpi.com/forum/t/dietpi-how-to-cross-compile-customized-c-software-package/5301 "2021-05-11T23:51:48Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![gaplee](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@gaplee](https://dietpi.com/forum/u/gaplee)
#### Post date: [11 May 2021 23:51 UTC](https://dietpi.com/forum/t/dietpi-how-to-cross-compile-customized-c-software-package/5301/1 "2021-05-11T23:51:48Z")

</div>

Hi,  
I am new here. Thanks DietPi team for the true lightweight OS.

I use rpi3. And download the RPI official toolchain here  
[https://github.com/raspberrypi/tools](https://github.com/raspberrypi/tools)

With this tool I could make the software running with -static option.

Is there official toolchain for DietPi? What’s the best way get small footprint software.

---

_[View the full topic](https://dietpi.com/forum/t/dietpi-how-to-cross-compile-customized-c-software-package/5301)._
