Skip to content

Commit

Permalink
fix: starsim: Add -fcommon flag to overwrite new default in gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Jun 24, 2022
1 parent 4eeac85 commit 7d5fd7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asps/Simulation/starsim/Conscript
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ $CPPPATH .= $main::PATH_SEPARATOR . "#asps/Simulation/starsim/include";
$CPPPATH .= $main::PATH_SEPARATOR . $env->{Packages}->{MYSQL}->{INCDIR};
$CPPPATH .= $main::PATH_SEPARATOR . $env->{ENV}->{CERN_ROOT} . "/include";
$CPPPATH .= $main::PATH_SEPARATOR . $env->{ENV}->{CERN_ROOT} . "/src/pawlib/paw/ntuple";
$CPPFLAGS = "-fcommon -DCERNLIB_DZDOC -DCERNLIB_NONEWL -DCERNLIB_SHL -DCERNLIB_HADRON -DCERNLIB_BSLASH -DCERNLIB_HIGZ -DCERNLIB_CG";
$CPPFLAGS = "-DCERNLIB_DZDOC -DCERNLIB_NONEWL -DCERNLIB_SHL -DCERNLIB_HADRON -DCERNLIB_BSLASH -DCERNLIB_HIGZ -DCERNLIB_CG";

if ($STAR_SYS =~ /^rh/ or $STAR_SYS =~ /^sl/ or $STAR_SYS =~ /^i386/) {
# $FPPFLAGS .= " -DCERNLIB_MYSQL -DCERNLIB_QMGLIBC";
Expand Down Expand Up @@ -123,6 +123,7 @@ $env2 = $env->clone('FC' => $FC,
'FCPATH' => $FCPATH,
'FEXTEND' => "",
'FDEBUG' => $FDEBUG,
'CFLAGS' => "$env->{CFLAGS} -fcommon",
'CPPFLAGS' => $CPPFLAGS,
'CPPPATH' => $CPPPATH,
'DEBUG' => $DEBUG,
Expand Down

0 comments on commit 7d5fd7f

Please sign in to comment.