This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-fPIE and -fPIC compilation flags
- From: Yashwardhan Singh <yashnitkkr7 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 14 Apr 2017 12:09:28 -0700
- Subject: -fPIE and -fPIC compilation flags
- Authentication-results: sourceware.org; auth=none
Hi
I am building CPython(Python Interpreter) using gcc 5.4.1. I want the
python executable, binary build after compilation to have Position
Independent Executable feature and the shared libraries built along it
to have PIC feature. So if I use –fpie and –fpic flags in the same
command to build object, which will be linked together into executable
or library, will that be a problem. Are –fPIC and –fPIE flags
conflicting in nature, so that whatever is specified later overshadows
the previous one. I would really appreciate if someone can help me
with it.
Regards
Yash