Skip to content

Commit

Permalink
Fix building bdw-gc on gcc-10.1.
Browse files Browse the repository at this point in the history
See https://gcc.cnu.org/gcc-10/porting_to.html, "Default to
-fno-common." for an explanation.
  • Loading branch information
jralls committed May 23, 2020
1 parent bf76f12 commit e49fa47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jhbuildrc.in
Expand Up @@ -86,5 +86,11 @@ module_extra_env["gnucash"]={'GUILE_LOAD_PATH':os.path.join(prefix, 'share', 'gu
module_extra_env["gnucash-unstable"]={'GUILE_LOAD_PATH':os.path.join(prefix, 'share', 'guile', '2.2'), 'GUILE_LOAD_COMPILED_PATH':os.path.join(prefix, 'lib', 'guile', '2.2', 'ccache')}
module_extra_env["gnucash-git"]={'GUILE_LOAD_PATH':os.path.join(prefix, 'share', 'guile', '2.2'), 'GUILE_LOAD_COMPILED_PATH':os.path.join(prefix, 'lib', 'guile', '2.2', 'ccache')}

_bdw_gc_cflags = '-fcommon'
if 'CFLAGS' in os.environ:
_bdw_gc_cflags = os.environ['CFLAGS'] + ' -fcommon'

module_extra_env['bdw-gc']={'CFLAGS':_bdw_gc_cflags}

if _branch in ('master', 'unstable'):
module_cmakeargs["gnucash-git"]=('-DGTEST_ROOT=$SRCROOT/googletest')

0 comments on commit e49fa47

Please sign in to comment.