<p>Jan Hrach has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10262">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Makefile: -O3 and debug build<br><br>Build standard builds with -O3.<br>Add a "debug" target with -Og and asan.<br><br>Change-Id: Ie943babb808ffdb1d807bcd7ce4ace54723b49a9<br>---<br>M src/Makefile<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-tetra refs/changes/62/10262/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/Makefile b/src/Makefile</span><br><span>index f6ff0fc..b21f846 100644</span><br><span>--- a/src/Makefile</span><br><span>+++ b/src/Makefile</span><br><span>@@ -1,8 +1,12 @@</span><br><span style="color: hsl(0, 100%, 40%);">-CFLAGS=-g -O0 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.</span><br><span style="color: hsl(120, 100%, 40%);">+CFLAGS=-g -O3 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.</span><br><span> LDLIBS=`pkg-config --libs libosmocore 2> /dev/null` -losmocore</span><br><span> </span><br><span> all: conv_enc_test crc_test tetra-rx float_to_bits tunctl</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+debug: CFLAGS := -lasan $(CFLAGS) -fsanitize=address -fno-omit-frame-pointer -g -Og</span><br><span style="color: hsl(120, 100%, 40%);">+debug: LDLIBS := -lasan $(LDLIBS)</span><br><span style="color: hsl(120, 100%, 40%);">+debug: all</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> %.o: %.c</span><br><span>   $(CC) $(CFLAGS) -c $^ -o $@</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10262">change 10262</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10262"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-tetra </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie943babb808ffdb1d807bcd7ce4ace54723b49a9 </div>
<div style="display:none"> Gerrit-Change-Number: 10262 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jan Hrach <jenda.2vf9h@hrach.eu> </div>