<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">The library files have to live somewhere. You need to tell the linker where to look<div class="">So,</div><div class=""><br class=""></div><div class="">swift build -Xlinker -L/path/to/the/libraries -L/path/to/more/libraries</div><div class=""><br class=""></div><div class="">should do the trick. It’s no different than C or C++.</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 11, 2017, at 7:23 AM, Evtim Papushev via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks, but that would not work. Those static library files are not in /usr/lib nor /usr/local/lib. They are part of the package I’m trying to link against.<div class=""><br class=""></div><div class="">So, swift build checkouts the repo. Then it should link them from it.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Evtim<br class=""><div class=""><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 11, 2017, at 13:49, Fred Appelman <<a href="mailto:fred@appelman.net" class="">fred@appelman.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><pre style="margin: 15px 0px; font-family: Menlo, Consolas, 'Liberation Mono', Courier, monospace; font-size: 10pt; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgb(248, 248, 248); border: 1px solid rgb(204, 204, 204); overflow: auto; padding: 4px 8px; word-break: normal; word-wrap: normal; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><code style="font-family: Menlo, Consolas, 'Liberation Mono', Courier, monospace; font-size: 10pt; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgb(248, 248, 248); color: inherit; border: 0px; margin: 0px; padding: 0px; word-break: normal; word-wrap: normal; -webkit-margin-before: 0px;" class="">swift build -Xlinker "-L/usr/local/lib"</code></pre></div></blockquote></div><br class=""></div></div></div></div>_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>