@@ -75,7 +75,8 @@ class _cmd_bootstrap_gtk_osx(jhbuild.commands.base.cmd_build):
7575 def run (self , config , options , args , help = None ):
7676 global use_local_modulesets
7777 moduleset = "bootstrap"
78- modulesets_dir = os .path .dirname (config .moduleset )
78+ modulesets_dir = os .path .join (os .path .dirname (os .path .dirname (config .moduleset )), 'modulesets-stable' )
79+ print (f"Modulests Dir: ${ modulesets_dir } " )
7980 if (use_local_modulesets and
8081 os .path .exists (os .path .join (modulesets_dir ,
8182 moduleset + '.modules' ))):
@@ -209,7 +210,7 @@ def setup_debug():
209210# autogenargs = autogenargs + " --enable-debug=yes"
210211
211212# Gtk+ crashes in gdk_window_quartz_raise() -- in a call to [NSWindow
212- # orderFront:] if gcc is passed -O0 for 64-bit compilation. The old
213+ # orderFront:] if clang is passed -O0 for 64-bit compilation. The old
213214# stabs+ debug format also doesn't work. See Snow Leopard in the Wiki
214215# for more information about debugging.
215216 environ_prepend ('CFLAGS' , "-O0 -g" )
@@ -251,11 +252,6 @@ def setup_sdk(target=_target, sdk_version=None, architectures=[_default_arch]):
251252 sdkdir = _popen ("xcrun --show-sdk-path" )
252253
253254 if sdkdir :
254- environ_prepend ("LDFLAGS" , "-L" + sdkdir + "/usr/lib" )
255- environ_prepend ("CFLAGS" , "-I" + sdkdir + "/usr/include" )
256- environ_prepend ("CXXFLAGS" , "-I" + sdkdir + "/usr/include" )
257- environ_prepend ("OBJCFLAGS" , "-I" + sdkdir + "/usr/include" )
258- environ_prepend ("CPPFLAGS" , "-I" + sdkdir + "/usr/include" )
259255 environ_prepend ("CMAKE_PREFIX_PATH" , os .path .join (sdkdir , 'usr' ), ':' )
260256 environ_prepend ("LIBRARY_PATH" , sdkdir + "/usr/lib" , ':' )
261257
@@ -296,12 +292,12 @@ def setup_sdk(target=_target, sdk_version=None, architectures=[_default_arch]):
296292 print ("WARNING: Universal builds are neither prohibited nor supported. It might work, but if it doesn't you're on your own." )
297293 # For unknown reasons, iconv is not picked up correctly without this
298294 #
299- gcc = _popen ("xcrun -f gcc " )
300- gpp = _popen ("xcrun -f g ++" )
295+ cc = _popen ("xcrun -f clang " )
296+ cxx = _popen ("xcrun -f clang ++" )
301297 ld = _popen ("xcrun -f ld" )
302- os .environ ["CC" ] = gcc
303- os .environ ["OBJC" ] = gcc
304- os .environ ["CXX" ] = gpp
298+ os .environ ["CC" ] = cc
299+ os .environ ["OBJC" ] = cc
300+ os .environ ["CXX" ] = cxx
305301 os .environ ['LD' ] = ld
306302
307303 # Set the -arch flags for everything we're building.
@@ -348,7 +344,7 @@ def setup_sdk(target=_target, sdk_version=None, architectures=[_default_arch]):
348344 # gettext-fw rebuilds gettext with an in-tree libiconv to get
349345 # around the Apple-provided one not defining _libiconv_init for
350346 # x86_64
351- append_autogenargs ("gettext-fw " , "--with-libiconv-prefix=" + prefix )
347+ append_autogenargs ("gettext" , "--with-libiconv-prefix=" + prefix )
352348
353349 environ_append ("CFLAGS" , "-mmacosx-version-min=" + target )
354350 environ_append ("CXXFLAGS" , "-mmacosx-version-min=" + target )
@@ -361,7 +357,6 @@ def setup_sdk(target=_target, sdk_version=None, architectures=[_default_arch]):
361357 append_autogenargs ("gnutls" , '--disable-guile CXXFLAGS="$CXXFLAGS -std=c++11"' )
362358 append_autogenargs ("guile" , 'CFLAGS="$CFLAGS -O1"' )
363359 #Some packages require special arguments or flags to compile with Clang:
364- module_extra_env ["pkg-config" ] = {'CFLAGS' : os .environ ['CFLAGS' ] + ' -std=gnu89' }
365360 append_autogenargs ('libgcrypt' , 'CFLAGS="$CFLAGS -fheinous-gnu-extensions"' )
366361 module_makeargs ['liboil' ] = 'CFLAGS="$CFLAGS -DHAVE_SYMBOL_UNDERSCORE -fheinous-gnu-extensions"'
367362
@@ -603,10 +598,10 @@ if not _ran_recursively and _gtk_osx_prompt_prefix:
603598 os .environ ["JHBUILD_PROMPT" ] = "[" + _gtk_osx_prompt_prefix + "] "
604599
605600os .environ ["PYTHON" ] = os .path .join (prefix , 'bin' , 'python3' )
606- module_extra_env ['pkg-config' ] = {'PYTHON' :sys .executable }
607601module_extra_env ["python3" ] = {'LIBS' :'-lintl' }
608602
609- module_extra_env ["spidermonkey" ] = {'AUTOCONF' :'autoconf' }
603+ module_extra_env ["harfbuzz-no-cairo" ] = {"CXXFLAGS" :"-std=c++17" }
604+ module_extra_env ["harfbuzz" ] = {"CXXFLAGS" :"-std=c++17" }
610605# Unset this so we don't mess with the check for not starting
611606# recursively.
612607os .unsetenv ("JHB" )
0 commit comments