Magellan Linux

Diff of /smage/trunk/core/gcc/gcc-12.2.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 15665 by niro, Tue Dec 20 22:31:31 2022 UTC revision 15666 by niro, Tue Dec 20 22:40:34 2022 UTC
# Line 275  SRC_URI=( Line 275  SRC_URI=(
275   ${SRC_URI[*]}   ${SRC_URI[*]}
276   http://ftp.gwdg.de/pub/misc/${_BASENAME}/releases/${_BASENAME}-${PVER}/${SRCFILE}   http://ftp.gwdg.de/pub/misc/${_BASENAME}/releases/${_BASENAME}-${PVER}/${SRCFILE}
277   #gnu://${_BASENAME}/${_BASENAME}-${PVER}/${SRCFILE}   #gnu://${_BASENAME}/${_BASENAME}-${PVER}/${SRCFILE}
278   http://isl.gforge.inria.fr/${ISL_SRCFILE}  # http://isl.gforge.inria.fr/${ISL_SRCFILE}
279   mirror://${_BASENAME}/${SRCFILE}   mirror://${_BASENAME}/${SRCFILE}
280   mirror://${_BASENAME}/${ISL_SRCFILE}  # mirror://${_BASENAME}/${ISL_SRCFILE}
281   mirror://${_BASENAME}/${_BASENAME}-8.1.0-no-fixincludes.patch  # mirror://${_BASENAME}/${_BASENAME}-8.1.0-no-fixincludes.patch
282   mirror://${_BASENAME}/${_BASENAME}-6.1.0-java-no-multilib.patch  # mirror://${_BASENAME}/${_BASENAME}-6.1.0-java-no-multilib.patch
283  )  )
284    
285  UP2DATE="updatecmd 'https://ftp.gnu.org/gnu/${PNAME}/' | utf8encode | grep '\[DIR\].*${PNAME}' | sed 's:.*${PNAME}-\(.*\)/.*:\1:' | upsort_pipe"  UP2DATE="updatecmd 'https://ftp.gnu.org/gnu/${PNAME}/' | utf8encode | grep '\[DIR\].*${PNAME}' | sed 's:.*${PNAME}-\(.*\)/.*:\1:' | upsort_pipe"
# Line 288  UP2DATE="updatecmd 'https://ftp.gnu.org/ Line 288  UP2DATE="updatecmd 'https://ftp.gnu.org/
288  #export CFLAGS="${CFLAGS//-O?} -O2"  #export CFLAGS="${CFLAGS//-O?} -O2"
289  #export CXXFLAGS="${CFLAGS}"  #export CXXFLAGS="${CFLAGS}"
290    
291  # check for crosscompile or export default CHOST  # from archlinux
292  if [[ -z ${CTARGET} ]]  # Credits @allanmcrae
293  then  # https://github.com/allanmcrae/toolchain/blob/f18604d70c5933c31b51a320978711e4e6791cf1/gcc/PKGBUILD
294   # no crosscompile defined  # TODO: properly deal with the build issues resulting from this
295   export CTARGET=${CHOST}  export CFLAGS="${CFLAGS/-Werror=format-security/}"
296  else  export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
297   # use crosscompile host  
298   export CTARGET=${CTARGET}  ## check for crosscompile or export default CHOST
299  fi  #if [[ -z ${CTARGET} ]]
300    #then
301    # # no crosscompile defined
302    # export CTARGET=${CHOST}
303    #else
304    # # use crosscompile host
305    # export CTARGET=${CTARGET}
306    #fi
307    
308  if lang_enabled c  if lang_enabled c
309  then  then

Legend:
Removed from v.15665  
changed lines
  Added in v.15666