Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
170a2870
Commit
170a2870
authored
Oct 20, 2020
by
Michal Wasiak
Committed by
Adam Wujek
Oct 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snmp: respect CONFIG_OPTIMIZATION during a build
Signed-off-by:
Michal Wasiak
<
michal.wasiak@gmail.com
>
parent
a879488d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Makefile
userspace/snmpd/Makefile
+6
-0
No files found.
userspace/snmpd/Makefile
View file @
170a2870
-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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment