Skip to content

Commit

Permalink
glibc: depend on a static kernel version for --enable-kernel
Browse files Browse the repository at this point in the history
Instead of moving with kernel-headers we keep glibc to 2.6.32 which
seem to be a common standard for most distros. The former sometimes
cause some issues if you aren't careful which even could result
in your box not booting.
  • Loading branch information
Ratler committed Aug 16, 2014
1 parent 4e9a2ec commit b6f207d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions libs/glibc/BUILD
Expand Up @@ -6,10 +6,8 @@

export CC_OPTS=( Pipe ) &&

KVER=`installed_version kernel-headers` &&

# There is no other option but nptl
OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=$KVER --with-headers=/usr/include" &&
OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=2.6.32 --with-headers=/usr/include" &&

if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
Expand Down
4 changes: 1 addition & 3 deletions libs/glibc/BUILD.x86_64
Expand Up @@ -5,10 +5,8 @@

export CC_OPTS=( Pipe ) &&

KVER=`installed_version kernel-headers` &&

# There is no other option but nptl
OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=$KVER --with-headers=/usr/include" &&
OPTS+=" --enable-add-ons=nptl,libidn --with-__thread --with-tls --disable-profile --enable-kernel=2.6.32 --with-headers=/usr/include" &&

if [ -n "$MAKES" ] && [ "$MAKES" -gt 1 ] ; then
sedit "s/# PARALLELMFLAGS = -j 4/PARALLELMFLAGS = -j $MAKES/" Makefile.in
Expand Down

0 comments on commit b6f207d

Please sign in to comment.