# IT4Innovations 2018 easyblock = 'ConfigureMake' name = 'glibc' version = '2.17' versionsuffix = '-x32' homepage = 'https://www.gnu.org/software/libc/' description = """The Glibc package contains the main C library. This library provides the basic routines for allocating memory, searching directories, opening and closing files, reading and writing files, string handling, pattern matching, arithmetic, and so on.""" toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'} builddependencies = [ ('make', '3.82', '', True) ] sources = ['%(name)s-%(version)s.tar.gz'] source_urls = ['http://ftp.gnu.org/gnu/glibc/'] preconfigopts = 'mkdir build && ' preconfigopts += 'cd build && ' configure_cmd_prefix = '.' configopts = '--enable-kernel=2.6.32 --enable-obsolete-rpc --enable-stack-protector=strong CC="gcc -m32" CXX="g++ -m32" CFLAGS="-O2 -march=i686" CXXFLAGS="-O2 -march=i686" i686-linux-gnu' prebuildopts = 'cd build && ' preinstallopts = 'cd build && ' sanity_check_paths = { 'files': [], 'dirs': ['lib'], } moduleclass = 'lib'