sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.86k stars 128 forks source link

rmlint: fix the build on older Darwin systems #573

Open barracuda156 opened 2 years ago

barracuda156 commented 2 years ago

This PR fixes rmlint build for 10.5.8 and 10.6. It contains two part, which come from:

  1. https://gist.github.com/ingramj/1105106/adfad1a7b1f0575dd7737c296d644856f2c2d074
  2. https://github.com/hboetes/mg/issues/7#issuecomment-475869095

P. S. There is also another problem related to how SCons build system works – trying to build a FAT binary on Leopard fails, for example, because arch flags get ignored. I solve it like this (for Macports): https://github.com/macports/macports-ports/pull/15003/files#diff-d43b1faa4b64984e308f2d41fddfd09fb559868da27208ff41417d636a4c7d20 I don’t know how to make a similar fix in the source code that gonna work without Macports assistance.

kencu commented 2 years ago

instead of MAC_OS_X_VERSION_10_7 use 1070

barracuda156 commented 1 year ago

@sahib Could you please take a look at this PR?