[Asterisk-code-review] res_snmp: Add -fPIC to _ASTCFLAGS (asterisk[18])

George Joseph asteriskteam at digium.com
Wed Sep 8 09:40:40 CDT 2021


George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16448 )


Change subject: res_snmp: Add -fPIC to _ASTCFLAGS
......................................................................

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
---
M res/Makefile
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/48/16448/1

diff --git a/res/Makefile b/res/Makefile
index ae090fa..45ef749 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -71,6 +71,8 @@
 $(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

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16448
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I34649c85e075fd954e578378fabf798c3f038f50
Gerrit-Change-Number: 16448
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210908/dc96cfea/attachment-0001.html>


More information about the asterisk-code-review mailing list