1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00

add -fPIC opt to CXXFLAGS across the board

This commit is contained in:
still-flow 2020-09-22 22:16:49 +03:00
parent 6327e766d9
commit 4970b6af25
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ set -e o pipefail
source .github/workflows/gh_ci_envvars.sh
GH_MYMAKE_ARGS=""
GH_MYMAKE_ARGS="-fPIC"
GH_AUTOTOOLS_CXXFLAGS="-W -Wall -Wextra -Wno-unused-parameter -Wno-maybe-uninitialized"
HYPERROGUE_USE_GLEW=$GH_HYP_GLEW

View File

@ -81,14 +81,14 @@ endif
ifeq (${TOOLCHAIN},clang)
CXXFLAGS_STD = -std=c++11
CXXFLAGS_EARLY += -march=native
CXXFLAGS_EARLY += -march=native -fPIC
CXXFLAGS_EARLY += -W -Wall -Wextra -Werror -pedantic
CXXFLAGS_EARLY += -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized -Wno-unknown-warning-option
endif
ifeq (${TOOLCHAIN},gcc)
CXXFLAGS_STD = -std=c++11
CXXFLAGS_EARLY += -march=native
CXXFLAGS_EARLY += -march=native -fPIC
CXXFLAGS_EARLY += -W -Wall -Wextra -Werror -pedantic
CXXFLAGS_EARLY += -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-maybe-uninitialized
endif