summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-package-no-fortran.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-01-24 21:21:51 +0000
committerRichard Purdie <richard@openedhand.com>2008-01-24 21:21:51 +0000
commitdc87a5f8219b5769ae971399b4c3335249849be4 (patch)
treea3317a3430c33ffb7a75748066c1963d5e87d0df /meta/packages/gcc/gcc-package-no-fortran.inc
parent8bc881f6ca99b44514db0ab914b05ac323c0a362 (diff)
downloadpoky-dc87a5f8219b5769ae971399b4c3335249849be4.tar.gz
gcc: Remove broken no-fortran package .inc files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3590 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gcc/gcc-package-no-fortran.inc')
-rw-r--r--meta/packages/gcc/gcc-package-no-fortran.inc101
1 files changed, 0 insertions, 101 deletions
diff --git a/meta/packages/gcc/gcc-package-no-fortran.inc b/meta/packages/gcc/gcc-package-no-fortran.inc
deleted file mode 100644
index cf3e9ed0bf..0000000000
--- a/meta/packages/gcc/gcc-package-no-fortran.inc
+++ /dev/null
@@ -1,101 +0,0 @@
1gcclibdir ?= "${libdir}/gcc"
2BINV ?= "${PV}"
3
4# libgcc libstdc++ libg2c are listed in our FILES_*, but are actually
5# packaged in the respective cross packages.
6PACKAGES = "${PN} ${PN}-symlinks \
7 g++ g++-symlinks \
8 cpp cpp-symlinks \
9 gcov gcov-symlinks \
10 libstdc++-dev libg2c-dev \
11 ${PN}-doc"
12
13FILES_${PN} = "${bindir}/${TARGET_PREFIX}gcc \
14 ${bindir}/${TARGET_PREFIX}gccbug \
15 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1 \
16 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2 \
17 ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
18 ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
19 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \
20 ${gcclibdir}/${TARGET_SYS}/${BINV}/include"
21FILES_${PN}-symlinks = "${bindir}/cc \
22 ${bindir}/gcc \
23 ${bindir}/gccbug"
24
25FILES_cpp = "${bindir}/${TARGET_PREFIX}cpp \
26 ${base_libdir}/cpp"
27FILES_cpp-symlinks = "${bindir}/cpp"
28
29FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov"
30FILES_gcov-symlinks = "${bindir}/gcov"
31
32# Called from within gcc-cross, so libdir is set wrong
33FILES_libg2c-dev = "${libdir}/libg2c.so \
34 ${libdir}/libg2c.a \
35 ${libdir}/libfrtbegin.a"
36
37FILES_g++ = "${bindir}/${TARGET_PREFIX}g++ \
38 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus"
39FILES_g++-symlinks = "${bindir}/c++ \
40 ${bindir}/g++"
41
42FILES_libstdc++-dev = "${includedir}/c++/${BINV} \
43 ${libdir}/libstdc++.so \
44 ${libdir}/libstdc++.la \
45 ${libdir}/libstdc++.a \
46 ${libdir}/libsupc++.la \
47 ${libdir}/libsupc++.a"
48
49FILES_${PN}-doc = "${infodir} \
50 ${mandir} \
51 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README"
52
53
54do_install () {
55 autotools_do_install
56
57 # Cleanup some of the ${libdir}{,exec}/gcc stuff ...
58 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
59 rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
60
61 # Hack around specs file assumptions
62 sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs &>/dev/null || true
63
64 # Move libgcc_s into /lib
65 mkdir -p ${D}${base_libdir}
66 mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir}
67 rm ${D}${libdir}/libgcc_s.so
68 ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \
69 | tr -s / \
70 | sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \
71 ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so
72
73 # We don't need libtool libraries
74 rm ${D}${libdir}/libg2c.la &>/dev/null || true
75
76
77 # Cleanup manpages..
78 rm -r ${D}${mandir}/man7
79
80 # We use libiberty from binutils
81 rm ${D}${libdir}/libiberty.a
82
83 cd ${D}${bindir}
84
85 # We care about g++ not c++
86 rm *c++
87
88 # We don't care about the gcc-<version> ones for this
89 rm *gcc-?.?*
90
91 # These sometimes show up, they are strange, we remove them
92 rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-*
93
94 # Symlinks so we can use these trivially on the target
95 ln -sf ${TARGET_SYS}-g++ g++
96 ln -sf ${TARGET_SYS}-gcc gcc
97 ln -sf g++ c++
98 ln -sf gcc cc
99 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp
100 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp
101}