=============================================================================== _____ _ _ _ _ __ ____ ________ ______ / ____| | | | | | | \/ \ \ / / ____| ____| | | __| |__| | | | | \ / |\ \ / /| |__ | |__ | | |_ | __ | | | | |\/| | \ \/ / | __| | __| | |__| | | | | |__| | | | | \ / | |____| |____ \_____|_| |_|\____/|_| |_| \/ |______|______| GHent University Multi-Variant Execution Environment (c) 2010-2014 Stijn Volckaert =============================================================================== 1) Building RD-ready glibc and libpthreads libraries ---------------------------------------------------- Instructions for Debian based systems: # get the source if you haven't already apt-get source eglibc # First and foremost: disable multi-arch builds cd eglibc-/debian/sysdeps # open the .mk file and delete every line from "extra_config_options" onwards # delete the architecture specific files that we don't need: cd eglibc-/nptl/sysdeps/unix/sysv/linux// find * | grep "\.S" | grep -v cancel | grep -v fork | xargs rm # apply the patch cd ~/eglibc- patch -p1 < eglibc-.patch # build eglibc DEB_BUILD_OPTIONS=nocheck debuild -j8 -us -uc -b 2) Building a GHUMVEE-ready libstdc++ and libgomp ------------------------------------------------- apt-get source gcc- cd gcc- tar xJf gcc-* cd gcc- # copy the mvee_atomic.h header cp /path-to-GHUMVEE/scripts/mvee_atomic.h . # patch libstdc++ patch -p1 < /path-to-GHUMVEE/patches/libstdc++..patch # patch libgomp cd libgomp/config rm -rf linux bsd mingw32 osf mv posix linux mkdir posix cp linux/time.c posix cd ../ patch -p1 < /path-to-GHUMVEE/patches/libgomp..patch # make ./configure make -j 8