Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improved gcc compilation

  • Loading branch information...
commit 40463c5c158887ed968a927b66a89026096cc373 1 parent 51335e9
@mpapis mpapis authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 gcc/shell/functions
View
13 gcc/shell/functions
@@ -8,4 +8,17 @@ gcc_prefetch()
_package_url="${_package_url:-} ${_url}/${package_name}-${package_version}/${package_file}"
done
package define url "${_package_url}"
+ package configure flags "--with-pkgversion=GCC_SM_$(date +%Y%m%d_%H%M)"
+}
+
+gcc_prconfigure()
+{
+ typeset GCC_BUILD_PATH
+ export configure_command PREFIX
+ GCC_BUILD_PATH=$PWD-build
+ PREFIX="${install_path}"
+ package configure flag "--prefix" "${install_path}"
+ configure_command="$PWD/configure ${configure_flags[*]}"
+ \mkdir "${GCC_BUILD_PATH}"
+ \cd "${GCC_BUILD_PATH}"
}
Please sign in to comment.
Something went wrong with that request. Please try again.