On Sat, Aug 18, 2012 at 11:36 PM, Elvis Dowson <elvis.dow...@gmail.com> wrote: > Hi Khem, > What should I do to enable multilib in gcc-4.7? > > I think at the moment, in gcc-configure-common.inc, it is disabled. > > If I were to re-enable it as follows, based on what I've diff'd from the > Denx ELDK repo, what how does the GCCMULTILIB variable evaluate?
just for tests. append --enable-multilib to EXTRA_OECONF in gcc-cross_4.7.bb something like EXTRA_OECONF_append = " xxx " > > -GCCMULTILIB = "--disable-multilib" > +GCCMULTILIB = '${@base_contains("MULTILIB_ARCH_LIST", "${TARGET_ARCH}", > "--enable-multilib", "--disable-multilib",d)}' > > I think multilib has to be enabled, no? > > In file gcc/config/rs6000/t-ppcos.c > > # Multilibs for a powerpc hosted ELF target (linux, SVR4) > > MULTILIB_OPTIONS = msoft-float > MULTILIB_DIRNAMES = nof > MULTILIB_EXTRA_OPTS = fPIC mstrict-align > MULTILIB_EXCEPTIONS = > > MULTILIB_MATCHES = ${MULTILIB_MATCHES_FLOAT} > > > Here is the full patch, which I am assuming enables multilib, and get libgcc > to generate the nof libraries to the target: > > diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc > b/meta/recipes-devtools/gcc/gcc-configure-common.inc > index 908ad3e..a3fa294 100644 > --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc > +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc > @@ -25,7 +25,7 @@ EXTRA_OECONF_PATHS ?= "" > EXTRA_OECONF_INITIAL ?= "" > EXTRA_OECONF_INTERMEDIATE ?= "" > > -GCCMULTILIB = "--disable-multilib" > +GCCMULTILIB = '${@base_contains("MULTILIB_ARCH_LIST", "${TARGET_ARCH}", > "--enable-multilib", "--disable-multilib",d)}' > > EXTRA_OECONF = "${@['--enable-clocale=generic', ''][d.getVar('USE_NLS', > True) != 'no']} \ > --with-gnu-ld \ > diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb > b/meta/recipes-devtools/gcc/libgcc_4.7.bb > index c796253..aac81f6 100644 > --- a/meta/recipes-devtools/gcc/libgcc_4.7.bb > +++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb > @@ -18,7 +18,9 @@ FILES_${PN} = "${base_libdir}/libgcc*.so.*" > FILES_${PN}-dev = " \ > ${base_libdir}/libgcc*.so \ > ${libdir}/${TARGET_SYS}/${BINV}/*crt* \ > - ${libdir}/${TARGET_SYS}/${BINV}/libgcc*" > + ${libdir}/${TARGET_SYS}/${BINV}/libgcc* \ > + ${libdir}/${TARGET_SYS}/${BINV}/nof/crt* \ > + ${libdir}/${TARGET_SYS}/${BINV}/nof/libgcc*" > FILES_libgcov${PKGSUFFIX}-dev = " \ > ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ > " > > Best regards, > > Elvis Dowson _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto