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

Friendly Automation asteriskteam at digium.com
Fri Sep 10 10:42:42 CDT 2021


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/16450 )

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(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



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/+/16450
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I34649c85e075fd954e578378fabf798c3f038f50
Gerrit-Change-Number: 16450
Gerrit-PatchSet: 2
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210910/b2d65e78/attachment.html>


More information about the asterisk-code-review mailing list