Set environment variables for gcc compiler

旧时模样 提交于 2019-12-12 03:49:38

问题


I want to set environment variables for my gcc compiler. Specifically, i want to set one of these two flags:

-fPIC Generate position-independent code if possible (large mode)

-fPIE Generate position-independent code for executables if possible (large mode)

what environment variables do i have to set before code compilation to have these flags enabled?

Basically, what i want is my setup.py file that i run build on, to use one of these flags when it is compiled.

来源:https://stackoverflow.com/questions/39122043/set-environment-variables-for-gcc-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!