cmake: do not use -fPIC for MSYS2 by pks-t · Pull Request #3833 · libgit2/libgit2 · GitHub
Skip to content

cmake: do not use -fPIC for MSYS2#3833

Merged
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/msys-conditional-fpic
Jun 21, 2016
Merged

cmake: do not use -fPIC for MSYS2#3833
ethomson merged 1 commit into
libgit2:masterfrom
pks-t:pks/msys-conditional-fpic

Conversation

@pks-t

@pks-t pks-t commented Jun 21, 2016

Copy link
Copy Markdown
Member

The MSYS2 build system automatically compiles all code with position-independent
code. When we manually add the -fPIC flag to the compiler flags, MSYS2 will
loudly complain about PIC being the default and thus not required.

Fix the annoyance by stripping -fPIC in MSYS2 enviroments like it is already
done for MinGW.

The MSYS2 build system automatically compiles all code with position-independent
code. When we manually add the -fPIC flag to the compiler flags, MSYS2 will
loudly complain about PIC being the default and thus not required.

Fix the annoyance by stripping -fPIC in MSYS2 enviroments like it is already
done for MinGW.
@ethomson ethomson merged commit 6944fd3 into libgit2:master Jun 21, 2016
@ethomson

Copy link
Copy Markdown
Member

@pks-t pks-t deleted the pks/msys-conditional-fpic branch June 27, 2016 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants