]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_snmp: Add -fPIC to _ASTCFLAGS
authorGeorge Joseph <gjoseph@digium.com>
Wed, 8 Sep 2021 14:36:40 +0000 (08:36 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Fri, 10 Sep 2021 15:42:52 +0000 (10:42 -0500)
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

res/Makefile

index ae090fab0192f676a4d87e82f6b3375a17708a71..45ef749a3f2c1660b1d8643f28ee61b546ec507d 100644 (file)
@@ -71,6 +71,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