# Building GLFW3 for Linux x86

**URL:** <https://discourse.glfw.org/t/building-glfw3-for-linux-x86/1368>\
**Category:** support\
**Created:** [July 22, 2019, 7:50am UTC](https://discourse.glfw.org/t/building-glfw3-for-linux-x86/1368 "2019-07-22T07:50:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvorisek25](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@pvorisek25](https://discourse.glfw.org/u/pvorisek25)\
**Post date:** [July 22, 2019, 7:50am UTC](https://discourse.glfw.org/t/building-glfw3-for-linux-x86/1368/1 "2019-07-22T07:50:45Z")

</div>

Hi,

I am trying to build static library of GLFW3 for Linux x86. I am trying to build it on 64 bit machine (Don’t ask why 😀). And I am newbie with Makefile and CMake and all that stuff. I was finding setting of processor architecture in these files but I failed. Does anyone know how I can build GLFW3 from source code for 32 bit Linux?

Thanks for answeres.

---

<div class="post-metadata">

**Author:** ![pvorisek25](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@pvorisek25](https://discourse.glfw.org/u/pvorisek25)\
**Post date:** [July 22, 2019, 1:10pm UTC](https://discourse.glfw.org/t/building-glfw3-for-linux-x86/1368/2 "2019-07-22T13:10:15Z")

</div>

I solved my problem myself. After hard googling 😀 I found that you can just add “set (CMAKE\_C\_FLAGS “-m32”)” to CMakeLists.txt to force compiler to build all files for 32 bit system.
