From 502357f1469b8806b5810dabceab3b31ba44c48c Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 1 Jan 2021 19:58:42 +0100 Subject: [PATCH] hedgewars: need -fcommon when building using pas2c --- srcpkgs/hedgewars/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template index ed711da0cbe..d2294cf572f 100644 --- a/srcpkgs/hedgewars/template +++ b/srcpkgs/hedgewars/template @@ -43,10 +43,13 @@ if [ -n "$_use_c_engine" ]; then fi pre_configure() { - # remove option not supported by clang if [ -n "$_use_c_engine" ]; then + # remove option not supported by clang CFLAGS=${CFLAGS/-fstack-clash-protection/} CXXFLAGS=${CXXFLAGS/-fstack-clash-protection/} + # prevent multiple definitions + CFLAGS+=" -fcommon" + CXXFLAGS+=" -fcommon" fi }