Skip to content

Instantly share code, notes, and snippets.

@avinash-palleti
Created September 19, 2018 10:58
Show Gist options
  • Select an option

  • Save avinash-palleti/b67235d9d948fc7b7756b3cecf1c3bf1 to your computer and use it in GitHub Desktop.

Select an option

Save avinash-palleti/b67235d9d948fc7b7756b3cecf1c3bf1 to your computer and use it in GitHub Desktop.
inside docker
%define glibcpath sclinux-glibc
Name : fusa-glibc
Version : 2.27
Release : 1
Source0 : https://ftp.gnu.org/gnu/libc/sclinux-glibc.tar.gz
Summary : GNU C Library
Group : Development/Tools
License : BSD-3-Clause BSL-1.0 GFDL-1.2 GFDL-1.3 GPL-2.0 GPL-3.0 LGPL-2.1 LGPL-3.0 MIT
AutoProv : No
%description
GNU C library.
%prep
%setup -q -n %{glibcpath}
%build
rm -rf build
mkdir build
cd build
../configure \
--prefix=%{buildroot}/opt/glibc \
--with-pkgversion='FuSa Clear Linux OS for Intel Architecture'\
--disable-werror\
CFLAGS="-O2 -U_FORTIFY_SOURCE"
make %{?_smp_mflags}
#%check
#pushd ../gcc-build
#export CHECK_TEST_FRAMEWORK=1
#make -k %{?_smp_mflags} check || :
#popd
%install
cd build
export CPATH=%{buildroot}/opt/glibc/include
export LIBRARY_PATH=%{buildroot}/opt/glibc/lib64
#%make_install
make install
cd -
%files
/opt/glibc/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment