summaryrefslogtreecommitdiff
path: root/meta/packages/gcc/gcc-package-runtime.inc
blob: 055753b8eae58b71e9259cddf3d6ad3b91fe9981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
PACKAGES = "\
  libgcc \
  libgcc-dev \
  libstdc++ \
  libstdc++-precompile-dev \
  libstdc++-dev \
  libg2c \
  libg2c-dev \
  libssp \
  libssp-dev \
  libgfortran \
  libgfortran-dev \
  libmudflap \
  libmudflap-dev \
"

FILES_libgcc = "${base_libdir}/libgcc*.so.*"
FILES_libgcc-dev = " \
  ${base_libdir}/libgcc*.so \
  ${libdir}/gcc/${TARGET_SYS}/${BINV}/crt* \
  ${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc*"

FILES_libg2c = "${target_libdir}/libg2c.so.*"
FILES_libg2c-dev = "\
  ${libdir}/libg2c.so \
  ${libdir}/libg2c.a \
  ${libdir}/libfrtbegin.a"

FILES_libstdc++ = "${libdir}/libstdc++.so.*"
FILES_libstdc++-dev = "\
  ${includedir}/c++/ \
  ${libdir}/libstdc++.so \
  ${libdir}/libstdc++.la \
  ${libdir}/libstdc++.a \
  ${libdir}/libsupc++.la \
  ${libdir}/libsupc++.a"

FILES_libstdc++-precompile-dev = "${includedir}/c++/${BINV}/${TARGET_SYS}/bits/*.gch"

FILES_libssp = "${libdir}/libssp.so.*"
FILES_libssp-dev = " \
  ${libdir}/libssp*.so \
  ${libdir}/libssp*.a \
  ${libdir}/libssp*.la \
  ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ssp"

FILES_libgfortran = "${libdir}/libgfortran.so.*"
FILES_libgfortran-dev = " \
  ${libdir}/libgfortran.a \
  ${libdir}/libgfortran.so \
  ${libdir}/libgfortranbegin.a"

FILES_libmudflap = "${libdir}/libmudflap*.so.*"
FILES_libmudflap-dev = "\
  ${libdir}/libmudflap*.so \
  ${libdir}/libmudflap*.a \
  ${libdir}/libmudflap*.la"


do_install () {
	oe_runmake 'DESTDIR=${D}' install-target

	# Move libgcc_s into /lib
	mkdir -p ${D}${base_libdir}
	if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then
		mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir}
	else
		mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true
	fi
}