<p>Kévin Redon has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10826">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">host: clean library dependencies<br><br>remsim also needs libpcsclite<br>`pkg-config --libs libosmocore` and -losmocore are duplicates<br>`pkg-config --libs libosmosim` is equivalent to -losmosim<br>pthread it needed (by most applications) for static compilation<br>LDFLAGS+= allows static compilation when running<br>LDFLAGS="-static" make<br><br>Change-Id: Ic7bd6f2be074d6f652d4f84f4996c8588ea5f851<br>---<br>M host/Makefile<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/26/10826/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/host/Makefile b/host/Makefile</span><br><span>index 7d5c7a4..aee399c 100644</span><br><span>--- a/host/Makefile</span><br><span>+++ b/host/Makefile</span><br><span>@@ -1,4 +1,4 @@</span><br><span style="color: hsl(0, 100%, 40%);">-LDFLAGS=`pkg-config --libs libusb-1.0 libosmocore` -losmocore</span><br><span style="color: hsl(120, 100%, 40%);">+LDFLAGS+=`pkg-config --libs libusb-1.0 libosmocore` -pthread</span><br><span> CFLAGS=-Wall -g</span><br><span> </span><br><span> APPS=simtrace2-remsim simtrace2-remsim-usb2udp simtrace2-list simtrace2-sniff</span><br><span>@@ -6,7 +6,7 @@</span><br><span> all: $(APPS)</span><br><span> </span><br><span> simtrace2-remsim: simtrace2-remsim.o apdu_dispatch.o simtrace2-discovery.o libusb_util.o</span><br><span style="color: hsl(0, 100%, 40%);">-     $(CC) -o $@ $^ $(LDFLAGS) -losmosim</span><br><span style="color: hsl(120, 100%, 40%);">+   $(CC) -o $@ $^ $(LDFLAGS) `pkg-config --libs libosmosim libpcsclite`</span><br><span> </span><br><span> simtrace2-remsim-usb2udp: usb2udp.o simtrace2-discovery.o</span><br><span>        $(CC) -o $@ $^ $(LDFLAGS)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10826">change 10826</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/10826"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ic7bd6f2be074d6f652d4f84f4996c8588ea5f851 </div>
<div style="display:none"> Gerrit-Change-Number: 10826 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kévin Redon <kredon@sysmocom.de> </div>