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:
parent
6327e766d9
commit
4970b6af25
2
.github/workflows/build.sh
vendored
2
.github/workflows/build.sh
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user