Skip to content

Commit

Permalink
馃毀 build: remove -fPIC, dedupe libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Apr 12, 2022
1 parent a7dff1d commit eaab1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def pkgconfig(libs, optional="", static=False):
],
),
}
ext_kwargs = {"extra_compile_args": ["-fPIC"]}
ext_kwargs = {"extra_compile_args": []}
library_options = set(
subprocess.check_output(
["pkg-config", optional, "--libs-only-l", *libs]
Expand Down Expand Up @@ -57,7 +57,7 @@ def pkgconfig(libs, optional="", static=False):
ext_kwargs.setdefault(distutils_kwarg, default_value).extend(
[opt[trim_offset:] for opt in options]
)
ext_kwargs['libraries'].append('stdc++')
ext_kwargs["libraries"] = list(set(ext_kwargs["libraries"]))
return ext_kwargs


Expand Down

0 comments on commit eaab1da

Please sign in to comment.