diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template index 2bafd62b62..944fba59bf 100644 --- a/srcpkgs/libunwind/template +++ b/srcpkgs/libunwind/template @@ -12,6 +12,8 @@ homepage="https://www.nongnu.org/libunwind/" distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version/rc/-rc}.tar.gz" checksum=df59c931bd4d7ebfd83ee481c943edf015138089b8e50abed8d9c57ba9338435 +CFLAGS="-fcommon" + # LDFLAGS is necessary because libunwind.so itself uses getcontext/setcontext case "$XBPS_TARGET_MACHINE" in i686-musl) LDFLAGS=" -lssp_nonshared" ;;