|
|
@ -13,6 +13,16 @@ |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# copy/create some needed header files |
|
|
|
|
|
|
|
pkg_glibc_postmake_headers() { |
|
|
|
|
|
|
|
mkdir -p $includedir/{bits,gnu} |
|
|
|
|
|
|
|
cp -v ../include/features.h $root$includedir |
|
|
|
|
|
|
|
[ -e $root$includedir/bits/stdio_lim.h ] || |
|
|
|
|
|
|
|
touch $root$includedir/bits/stdio_lim.h |
|
|
|
|
|
|
|
[ -e $root$includedir/gnu/stubs.h ] || |
|
|
|
|
|
|
|
touch $root$includedir/gnu/stubs.h |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# overwrite prefix to not point to the tools, but the real root for the headers |
|
|
|
# overwrite prefix to not point to the tools, but the real root for the headers |
|
|
|
if atstage toolchain; then |
|
|
|
if atstage toolchain; then |
|
|
|
# hack due to sane variable not available and prefix is tools prefix |
|
|
|
# hack due to sane variable not available and prefix is tools prefix |
|
|
@ -30,6 +40,8 @@ if atstage toolchain; then |
|
|
|
echo_warning "Old gcc detected: Working around cpuid.h support" |
|
|
|
echo_warning "Old gcc detected: Working around cpuid.h support" |
|
|
|
var_append SYSCC_WRAPPER_APPEND ' ' "-I$confdir/include-old-gcc" |
|
|
|
var_append SYSCC_WRAPPER_APPEND ' ' "-I$confdir/include-old-gcc" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hook_add postmake 5 'pkg_glibc_postmake_headers' |
|
|
|
else |
|
|
|
else |
|
|
|
var_append confopt " " "--with-headers=$root/usr/include" |
|
|
|
var_append confopt " " "--with-headers=$root/usr/include" |
|
|
|
|
|
|
|
|
|
|
@ -151,27 +163,10 @@ glibc_prepatch() { |
|
|
|
tar -v --dereference ${taropt} $tarball |
|
|
|
tar -v --dereference ${taropt} $tarball |
|
|
|
rm $tarname |
|
|
|
rm $tarname |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $root$includedir/gnu/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $pkg == glibc ]; then |
|
|
|
|
|
|
|
touch $root$includedir/gnu/stubs.h |
|
|
|
|
|
|
|
if [ $slibdir = lib64 ]; then |
|
|
|
|
|
|
|
touch $root$includedir/gnu/stubs{-32,-64}.h |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
glibc_postmake() |
|
|
|
glibc_postmake() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if atstage toolchain; then |
|
|
|
|
|
|
|
cp -v ../include/features.h $root$includedir |
|
|
|
|
|
|
|
mkdir -p $includedir/{bits,gnu} |
|
|
|
|
|
|
|
[ -e $root$includedir/bits/stdio_lim.h ] || |
|
|
|
|
|
|
|
touch $root$includedir/bits/stdio_lim.h |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ln -sf libbsd-compat.a $root/usr/$slibdir/libbsd.a |
|
|
|
ln -sf libbsd-compat.a $root/usr/$slibdir/libbsd.a |
|
|
|
|
|
|
|
|
|
|
|
# Misc. stuff |
|
|
|
# Misc. stuff |
|
|
|