This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/77464] gcc -no-pie breaks -shared
- From: "balint at balintreczey dot hu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Sep 2016 00:37:55 +0000
- Subject: [Bug c/77464] gcc -no-pie breaks -shared
- Auto-submitted: auto-generated
- References: <bug-77464-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77464
--- Comment #7 from Balint Reczey <balint at balintreczey dot hu> ---
(In reply to Andrew Pinski from comment #1)
> You need -fPIC to create shared libraries.
I know that the relevant options are -fPIC and -fno-PIC. I have opened the bug
to handle -shared -no-pie and -no-pie -shared consistently and equivalently to
-shared only.