Skip to content

Commit

Permalink
Build: Make sure we have "-fPIC" in LDFLAGS.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 30, 2024
1 parent f3eefca commit 3f71c11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -11,7 +11,7 @@ PYTHON_BUILD_VERSION ?= *
MANYLINUX_LIBXML2_VERSION=2.12.6
MANYLINUX_LIBXSLT_VERSION=1.1.39
MANYLINUX_CFLAGS=-O3 -g1 -pipe -fPIC -flto
MANYLINUX_LDFLAGS=-flto
MANYLINUX_LDFLAGS=-fPIC -flto

MANYLINUX_IMAGES= \
manylinux1_x86_64 \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -16,7 +16,7 @@ CFLAGS = "-O3 -g1 -pipe -fPIC -flto -mtune=generic"
AR = "gcc-ar"
NM = "gcc-nm"
RANLIB = "gcc-ranlib"
LDFLAGS = "-flto"
LDFLAGS = "-fPIC -flto"
STATIC_DEPS = "true"
LIBXML2_VERSION = "2.12.6"
LIBXSLT_VERSION = "1.1.39"
Expand Down
2 changes: 1 addition & 1 deletion tools/ci-run.sh
Expand Up @@ -107,7 +107,7 @@ if [[ "$COVERAGE" != "true" ]]; then
echo "Building a clean wheel ..."
GITHUB_API_TOKEN="${SAVED_GITHUB_API_TOKEN}" \
CFLAGS="$EXTRA_CFLAGS -O3 -g1 -mtune=generic -fPIC -flto" \
LDFLAGS="-flto $EXTRA_LDFLAGS" \
LDFLAGS="-flto -fPIC $EXTRA_LDFLAGS" \
make clean wheel || exit 1
fi

Expand Down

0 comments on commit 3f71c11

Please sign in to comment.