<p></p>
<p>As for CMAKE_BUILD_TYPE=MinSizeRel it will reduce the size of the binary but will it statically link it? Can you use a <code>docker run</code> command with the image you created with the dockerfile you mention in your comment?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1427#issuecomment-797411432">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353W2HI6VEU3FQKTJFJTTDHXLRANCNFSM4ZB2J25A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353VJVB5JFJTB7LUSNVDTDHXLRA5CNFSM4ZB2J25KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF6DYQ2A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1427#issuecomment-797411432",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1427#issuecomment-797411432",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>