From: George Joseph Date: Wed, 8 Sep 2021 14:36:40 +0000 (-0600) Subject: res_snmp: Add -fPIC to _ASTCFLAGS X-Git-Tag: 16.21.0-rc1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a9e5f0f25b7b82004e2f6a04d8168c63f8bfa70;p=thirdparty%2Fasterisk.git res_snmp: Add -fPIC to _ASTCFLAGS With gcc 11, res/res_snmp.c and res/snmp/agent.c need the -fPIC option added to its _ASTCFLAGS. ASTERISK-29634 Change-Id: I34649c85e075fd954e578378fabf798c3f038f50 --- diff --git a/res/Makefile b/res/Makefile index 8b1b75998d..cd6e8ada64 100644 --- a/res/Makefile +++ b/res/Makefile @@ -69,6 +69,8 @@ $(call MOD_ADD_C,res_stasis_recording,stasis_recording/stored.c) $(call MOD_ADD_C,res_stir_shaken,$(wildcard res_stir_shaken/*.c)) res_parking.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) +snmp/agent.o: _ASTCFLAGS+=-fPIC +res_snmp.o: _ASTCFLAGS+=-fPIC # Dependencies for res_ari_*.so are generated, so they're in this file include ari.make