diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 12c5815c939ff2..f8ad645c42b137 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -199,6 +199,12 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) { if os.uname().machine == 'Power Macintosh' { user_darwin_ppc = true } + + // Mac OS 10.4 and older requires Macports legacy software to build programs + if user_darwin_version <= 8 { + ccoptions.args << '-I' + @VEXEROOT + '/thirdparty/legacy/include/LegacySupport/' + ccoptions.args << @VEXEROOT + '/thirdparty/legacy/lib/libMacportsLegacySupport.a' + } } ccoptions.debug_mode = v.pref.is_debug ccoptions.guessed_compiler = v.pref.ccompiler