Skip to content

Commit

Permalink
Set CFLAGS=-fPIC
Browse files Browse the repository at this point in the history
Signed-off-by: Dusty DeWeese <[email protected]>
  • Loading branch information
HackerFoo committed Dec 16, 2020
1 parent cd6a089 commit 94ea28b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def build_extension(self, ext):
env.get('CXXFLAGS', ''), self.distribution.get_version())
if not os.path.exists(self.build_temp):
os.makedirs(self.build_temp)
os.environ["CXXFLAGS"] = "-fPIC"
os.environ["CFLAGS"] = "-fPIC"
subprocess.check_call(
['cmake', ext.sourcedir] + cmake_args,
cwd=self.build_temp,
Expand Down

0 comments on commit 94ea28b

Please sign in to comment.