summaryrefslogtreecommitdiffstats
path: root/gcc.pkg.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-18 12:25:16 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-18 12:25:16 (EDT)
commit275c6d69c9e7e3e1d4f7ad18354d2471f16458f1 (patch)
tree4668216ed40bb32c3b3992937439d3ba2b654a15 /gcc.pkg.in
parentda6571d75ad299cfbe3984930c86cecf3be29401 (diff)
Make gcc and g++ target-specific.
Diffstat (limited to 'gcc.pkg.in')
-rw-r--r--gcc.pkg.in/control7
-rw-r--r--gcc.pkg.in/files2
-rwxr-xr-xgcc.pkg.in/postinst5
-rwxr-xr-xgcc.pkg.in/prerm5
4 files changed, 19 insertions, 0 deletions
diff --git a/gcc.pkg.in/control b/gcc.pkg.in/control
new file mode 100644
index 0000000..2f73ff2
--- /dev/null
+++ b/gcc.pkg.in/control
@@ -0,0 +1,7 @@
+Package: gcc
+Architecture: all
+Depends: cpp (>= 0.1), gcc-4.6 (>= 4.6.2-1)
+Description: GNU C compiler for @PKG_TARGET_ARCH@
+ This is the GNU C compiler, a fairly portable optimizing compiler for C.
+ .
+ This package depends on the default version of the GNU C compiler.
diff --git a/gcc.pkg.in/files b/gcc.pkg.in/files
new file mode 100644
index 0000000..c075821
--- /dev/null
+++ b/gcc.pkg.in/files
@@ -0,0 +1,2 @@
+/usr/bin/c89
+/usr/bin/c99
diff --git a/gcc.pkg.in/postinst b/gcc.pkg.in/postinst
new file mode 100755
index 0000000..9fd34c0
--- /dev/null
+++ b/gcc.pkg.in/postinst
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+if [ "${1}" = configure ]; then
+ update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 20
+fi
diff --git a/gcc.pkg.in/prerm b/gcc.pkg.in/prerm
new file mode 100755
index 0000000..5d0150b
--- /dev/null
+++ b/gcc.pkg.in/prerm
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+if [ "${1}" = remove ]; then
+ update-alternatives --remove cc /usr/bin/gcc
+fi