mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
hedgewars: need -fcommon when building using pas2c
This commit is contained in:
parent
29fa0ea525
commit
502357f146
1 changed files with 4 additions and 1 deletions
|
@ -43,10 +43,13 @@ if [ -n "$_use_c_engine" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
# remove option not supported by clang
|
|
||||||
if [ -n "$_use_c_engine" ]; then
|
if [ -n "$_use_c_engine" ]; then
|
||||||
|
# remove option not supported by clang
|
||||||
CFLAGS=${CFLAGS/-fstack-clash-protection/}
|
CFLAGS=${CFLAGS/-fstack-clash-protection/}
|
||||||
CXXFLAGS=${CXXFLAGS/-fstack-clash-protection/}
|
CXXFLAGS=${CXXFLAGS/-fstack-clash-protection/}
|
||||||
|
# prevent multiple definitions
|
||||||
|
CFLAGS+=" -fcommon"
|
||||||
|
CXXFLAGS+=" -fcommon"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue