Commit 170a2870 authored by Michal Wasiak's avatar Michal Wasiak Committed by Adam Wujek

snmp: respect CONFIG_OPTIMIZATION during a build

Signed-off-by: 's avatarMichal Wasiak <michal.wasiak@gmail.com>
parent a879488d
-include ../Makefile.specific
# We are now Kconfig-based
-include ../../.config
# include Makefile for bridge mib
BRIDGE_MIB_DIR:=bridge_mib
include ${BRIDGE_MIB_DIR}/Makefile
......@@ -27,6 +30,9 @@ OBJDUMP = $(CROSS_COMPILE)objdump
# There is a static variable in pp-printf.c to accumulate stuff
CONFIG_PRINT_BUFSIZE ?= 256
export CFLAGS_OPTIMIZATION:= ${shell echo $(CONFIG_OPTIMIZATION)}
CFLAGS += $(CFLAGS_OPTIMIZATION)
# defer running "net-snmp-config --cflags" so it is visible in make output
CFLAGS += -fPIC -Wall $$($(NET_SNMP_CONFIG) --cflags | sed s,-I/usr/include,,)
LDFLAGS = -shared $$($(NET_SNMP_CONFIG) --ldflags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment