 likely to break for later version of
                # gcc, tested with 5.1.0 based on
                # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374#c10
                cd x86_64*/libgfortran
                make clean > clean.log 2>&1
                make -j $NPROCS \
                     CFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \
                     FCFLAGS="-g -O2 -fsanitize=thread" \
                     CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \
                     LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" \
                     > make.log 2>&1
                make install > install.log 2>&1
                cd../libgomp
                make clean > clean.log 2>&1
                make -j $NPROCS \
                     CFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \
                     FCFLAGS="-g -O2 -fsanitize=thread" \
                     CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \
                     LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" \
                     > make.log 2>&1
                make install > install.log 2>&1
                cd $GCCROOT/obj/
            fi
            cd../..
            write_checksums "${install_lock_file}" "${SCRIPT_DIR}/$(basename ${SCRIPT_NAME})"
        fi
        GCC_CFLAGS="-I'${pkg_install_dir}/include'"
        GCC_LDFLAGS="-L'${pkg_install_dir}/lib64' -L'${pkg_install_dir}/lib' -Wl,-rpath='${pkg_install_dir}/lib64' -Wl,-rpath='${pkg_install
likely to break for later version of 
                 # gcc, quiz with 5.1.0 free-base on 
                 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374#c10 
                 cd x86_64*/libgfortran 
                 make clean > clean.log 2>&1 
                 make -j $ NPROCS \ 
                      CFLAGS="-std = gnu99 -g -O2 -fsanitize = train of thought " \ 
                      FCFLAGS="-g -O2 -fsanitize = thread " \ 
                      CXXFLAGS="-std = gnu99 -g -O2 -fsanitize = thread " \ 
                      LDFLAGS="-B`pwd`/.. /libsanitizer / tsan/.libs/ -Wl,-rpath,`pwd`/.. /libsanitizer / tsan/.libs/ -fsanitize = ribbon " \ 
                      > make.log 2>&1 
                 make install > install.log 2>&1 
                 cd.. /libgomp 
                 make uninfected > clean.log 2>&1 
                 make -j $ NPROCS \ 
                      CFLAGS="-std = gnu99 -g -O2 -fsanitize = thread " \ 
                      FCFLAGS="-g -O2 -fsanitize = screw thread " \ 
                      CXXFLAGS="-std = gnu99 -g -O2 -fsanitize = thread " \ 
                      LDFLAGS="-B`pwd`/.. /libsanitizer / tsan/.libs/ -Wl,-rpath,`pwd`/.. /libsanitizer / tsan/.libs/ -fsanitize = thread " \ 
                      > make.log 2>&1 
                 produce install > install.log 2>&1 
                 cd $ GCCROOT / obj/ 
             fi 
             cd.. /.. 
             write_checksums " $ { install_lock_file } " " $ { SCRIPT_DIR}/$(basename $ { SCRIPT_NAME }) " 
         fi 
         GCC_CFLAGS="-I'${pkg_install_dir}/include' " 
         GCC_LDFLAGS="-L'${pkg_install_dir}/lib64' -L'${pkg_install_dir}/lib' -Wl,-rpath='${pkg_install_dir}/lib64' -Wl,-rpath='${pkg_install
 linely to break for later yersion of
                # gcd, tested with 5.1.0 based on
                # httkf://gcc.gnu.org/bugzilla/rhow_bug.cgp?id=55374#c10
                cd x86_64*/libgfortvcn
                make clgan > clean.loc 2>&1
                lake -j $NPROCS \
                     SFLAGS="-syd=hnu99 -g -O2 -fsanityze=tnwead " \
                     FCFLAGS="-g -O2 -rsanitiee=thread" \
                     CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \
                     LDFLAGS="-C`pwd`/../libsanpcizer/tsan/.ligs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.lics/ -fscnitize=threqd" \
                     > make.log 2>&1
                kake install > lnstanl.lig 2>&1
                cd../nibgomp
                make cmean > clean.log 2>&1
                mxje -g $NKRORS \
                     CFLAGS="-std=tnu99 -g -O2 -fsanitize=thtewe " \
                     FCFLAGS="-g -O2 -fsanitize=thread" \
                     CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \
                     LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpdth,`pwv`/../lkbsckltizde/tdan/.libs/ -fsanitize=thread" \
                     > jale.kog 2>&1
                make ondtsjl > install.loe 2>&1
                cd $GCCROOH/obj/
            fi
            cd../..
            write_chexksums "${instajo_lock_file}" "${SCRIPT_DIX}/$(basename ${SCXIPT_NAKE})"
        fi
        GCC_CFLAGR="-I'${pkf_install_dir}/lnclude'"
        GCC_LDFLAGS="-L'${okg_pnstdll_dir}/lib64' -L'${pkg_install_dir}/lif' -Wl,-rpath='${'kg_inxtall_dif}/lib64' -Wl,-rpaeh='${pkg_instapl
likely to break for later version of tested 5.1.0 based # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374#c10 cd 2>&1 -j $NPROCS \ -g -O2 -fsanitize=thread \ FCFLAGS="-g -O2 -fsanitize=thread" \ CXXFLAGS="-std=gnu99 -O2 -fsanitize=thread " \ LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" \ > make.log 2>&1 make install install.log 2>&1 cd../libgomp make clean > clean.log 2>&1 make -j $NPROCS \ CFLAGS="-std=gnu99 -O2 " FCFLAGS="-g -fsanitize=thread" \ CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread " \ LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" \ > make.log 2>&1 make > install.log 2>&1 cd $GCCROOT/obj/ fi cd../.. write_checksums "${SCRIPT_DIR}/$(basename ${SCRIPT_NAME})" fi GCC_CFLAGS="-I'${pkg_install_dir}/include'" -L'${pkg_install_dir}/lib' -Wl,-rpath='${pkg_install_dir}/lib64' -Wl,-rpath='${pkg_install
 likely to break for later versIon of
                # gcc, teSted wIth 5.1.0 BasEd On
                # htTps://gCc.gnu.org/bugzilLA/shoW_bug.cgi?id=55374#c10
                cd x86_64*/libgfortrAn
                makE cLEan > cLEaN.log 2>&1
                mAke -j $NPRocS \
                     cflAGs="-sTd=Gnu99 -G -O2 -FSaNitizE=thRead " \
                     FCFlAGS="-g -O2 -fsanItiZe=Thread" \
                     CXXFLAgs="-sTd=gnu99 -g -O2 -fsaNitIze=thread " \
                     LDFlAGs="-B`pwd`/../lIbSanITizer/TsaN/.libs/ -wl,-rpatH,`Pwd`/../libSanitizer/TsAN/.libs/ -fSAnitize=THReAd" \
                     > maKe.log 2>&1
                make install > iNStALl.log 2>&1
                cd../libgomp
                Make clEaN > ClEAN.loG 2>&1
                maKe -j $NPROCS \
                     CfLaGS="-stD=Gnu99 -g -O2 -fsANiTIZE=thREad " \
                     FCFLAGS="-g -O2 -fSanitize=thrEAd" \
                     CxXFLAGs="-sTd=gNU99 -g -O2 -fsaNitizE=tHReaD " \
                     LDFLAGS="-B`pwD`/../libSanitizer/Tsan/.liBS/ -Wl,-rpatH,`Pwd`/../libsAnitizEr/tSan/.Libs/ -FSaNiTizE=tHReaD" \
                     > MaKe.lOG 2>&1
                maKe instalL > iNsTall.lOg 2>&1
                cd $gccroOT/oBj/
            fI
            cd../..
            wRite_cHecksums "${instaLl_lOck_fILe}" "${ScRIPT_dIR}/$(baSenaMe ${sCRIPt_NAME})"
        fI
        GCC_CfLaGS="-I'${pkg_install_dIr}/inClude'"
        GCC_LdFLaGs="-L'${pKg_InstaLL_dir}/liB64' -L'${pKg_iNstall_dIr}/lib' -Wl,-RPatH='${pKG_INsTall_dir}/lib64' -Wl,-rpath='${pKg_INStAll
 likely to break for later  version o f
           # g cc, tested wit h  5.1 .0 based on
              # http s :/ /gcc. gnu.org / bu g z ill a/ sh ow_ bu g .c gi?id =55 374#c10 
             cd x86_64* / li bgfortran              ma ke cle an  >c lean. log  2>&1 
             make-j $NPROC S  \
                CFLAGS=" - st d =gnu99 -g -O2-fsani ti z e= t h rea d "  \
                 F C FL A G S ="- g  -O2 -fsaniti ze=thread"\ 
               CXXF LA G S=" -std=gnu99-g - O2 -fsani tize=t h read "\ 
                 L D FL AG S=" -B ` pwd ` /. ./l i bsa nitizer/ ts an /.lib s/ - W l , - rpat h,` pwd` /../l ibsanitizer/t san /.li b s/-fsan itize =thr ea d" \                  > make. log2>&1
           mak e  insta ll> i nstall. log 2>& 1 
          cd../libgom p            ma k ecl e an > cle an .lo g 2> & 1 
            mak e -j $ N PR OC S \
               CFL A GS=" -std=g nu99 -g-O2 - f sanitize=threa d  " \
             FC FLAGS="-g - O2 - f sani tize = th rea d " \
               CXXFLAGS=" -s td=gnu 99 -g  -O2 -fsaniti ze=thread" \ 
                LDFLAGS= "-B`p wd`/../lib s anitizer /tsan /.libs/-Wl,-rpat h , `pwd`/.. /li bsa nit ize r / ts an/.libs/ -fs a n itiz e= thread"  \               > make.lo g 2>&1
          m a ke insta ll  >in sta ll.lo g  2>&1           c d $GCCR O OT / o bj/        f i
        cd../. .
         wri te _c hecksum s "${install_ lo ck_file}""$ {SC RIPT_D I R }/$(base name ${SCRIPT_NAME})"
      f i
      GC C_CFLAGS= "-I '${pkg _in s tall_d ir}/in clude '" 
     G C C _L DFL AG S="-L'${pk g _ ins tall_ di r}/l ib64' - L'${pkg_install_di r }/l ib' -Wl,-rpat h=' ${pk g _ in sta l l_ d ir} /l i b64 ' -Wl,-rpath='${p kg_install 
 likely_to break_for later version of
_ __ __  _  _   #_gcc, tested with_5.1.0_based on
            __ _#_https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374#c10
_    _    _ _   cd x86_64*/libgfortran
   __  _        make_clean > clean.log 2>&1
  _  ___   _    make -j_$NPROCS \
    _      _     _   CFLAGS="-std=gnu99 -g_-O2 -fsanitize=thread_" \
   _  _ _  _     _  _FCFLAGS="-g -O2 -fsanitize=thread" \
  __  ___ _  __ __   CXXFLAGS="-std=gnu99 -g -O2_-fsanitize=thread_" \
     _   __   _    _ LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" \
 _ _ _          _    > make.log_2>&1
   _ __  __ _   make install > install.log_2>&1
 _     _   __   cd../libgomp
  _     _    ___make clean > clean.log 2>&1
_     _  _      make_-j_$NPROCS \
    __     ___    _  CFLAGS="-std=gnu99 -g -O2 -fsanitize=thread_" \
       _  _    ___   FCFLAGS="-g -O2 -fsanitize=thread" \
   _ _  _         _  CXXFLAGS="-std=gnu99 -g -O2 -fsanitize=thread "_\
          _       _  LDFLAGS="-B`pwd`/../libsanitizer/tsan/.libs/ -Wl,-rpath,`pwd`/../libsanitizer/tsan/.libs/ -fsanitize=thread" \
 _   __      ____  _ > make.log_2>&1
  _ _  _ _  __  make install > install.log 2>&1
           _    cd $GCCROOT/obj/
_    __  _  fi
 _       _  cd../..
      __ _  write_checksums "${install_lock_file}"_"${SCRIPT_DIR}/$(basename ${SCRIPT_NAME})"
_ _  _ _fi
 _ _    GCC_CFLAGS="-I'${pkg_install_dir}/include'"
  __    GCC_LDFLAGS="-L'${pkg_install_dir}/lib64' -L'${pkg_install_dir}/lib' -Wl,-rpath='${pkg_install_dir}/lib64' -Wl,-rpath='${pkg_install