[Asterisk-code-review] res_snmp: Add -fPIC to _ASTCFLAGS (asterisk[16])
George Joseph
asteriskteam at digium.com
Wed Sep 8 09:39:40 CDT 2021
George Joseph has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/16418 )
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/18/16418/1
diff --git a/res/Makefile b/res/Makefile
index 8b1b759..cd6e8ad 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -69,6 +69,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/+/16418
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I34649c85e075fd954e578378fabf798c3f038f50
Gerrit-Change-Number: 16418
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/e10572f4/attachment.html>
More information about the asterisk-code-review
mailing list