<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I have been experimenting with building my M2VDownsizer port on other Macs running newer MacOS.  M2VDownsizer uses a Makefile to build the binary from source code written in C.  (see PR 
<a href="https://github.com/macports/macports-ports/pull/15636" id="LPNoLPOWALinkPreview">
https://github.com/macports/macports-ports/pull/15636</a> )<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I find that on newer Macs (e.g. 10.13), the following linker warning messages are often generated:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<blockquote style="margin-top:0;margin-bottom:0">ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
 are out of sync. Falling back to library file for linking.<br>
</blockquote>
<div><br>
</div>
<div>I can get rid of these warning messages if I include the following in the Portfile:</div>
<div><br>
</div>
<div>
<blockquote style="margin-top:0;margin-bottom:0">
<div>set MAJOR_MACOS_VERSION       [ exec sh -c { sw_vers -productVersion | cut -d '.' -f 1,2 } ]</div>
<br>
<div>set SDK_PATH       [ exec xcrun --show-sdk-path ]</div>
<div><br>
</div>
<div>configure.cflags-append     -mmacosx-version-min=${MAJOR_MACOS_VERSION}</div>
<div><br>
</div>
<div>configure.cflags-append     -isysroot ${SDK_PATH}</div>
</blockquote>
<div><br>
</div>
<div>The port builds just fine unless one uses trace mode.</div>
<div>i.e. sudo port -vst install M2VDwnsizer</div>
<div><br>
</div>
<div>I suspect that setting SYSROOT using -isysroot interferes with MacPorts trace mode.</div>
<div><br>
</div>
<div>I will probably just delete the extra statements above from the Portfile and just live with the warning messages.</div>
<div><br>
</div>
<div>Has anyone else dealt with this issue?<br>
</div>
<div><br>
</div>
<div>Rob<br>
</div>
<div><br>
</div>
</div>
<br>
</div>
</body>
</html>