--- meson.build
+++ meson.build
@@ -46,6 +46,7 @@
 ]
 
 build_args = [
+  '-isystem@PREFIX@/include/LegacySupport',
   '-Wall',
   '-Wextra',
   '-O3',
@@ -108,5 +109,6 @@
   dependencies : project_dependencies,
   install : true,
   c_args : build_args,
-  include_directories: include_directories('.')
+  include_directories: include_directories('.'),
+  link_args: ['-lMacportsLegacySupport']
 )
