From 6cf4d4705d2f4f3c0ee9ec09d2e242ecac696244 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Nov 2008 17:12:07 +0100 Subject: [PATCH] glibc: make this build on i386 by building with -march. --HG-- extra : convert_revision : 58fa11196aabc10b3c0d16640a461064c3c52fb1 --- templates/glibc.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/glibc.tmpl b/templates/glibc.tmpl index 9475fd7a851..0709856edab 100644 --- a/templates/glibc.tmpl +++ b/templates/glibc.tmpl @@ -30,6 +30,11 @@ pre_configure() mkdir -p $wrksrc/build_obj && cd $wrksrc/build_obj wrksrc=$wrksrc/build_obj echo "slibdir=/lib" > $wrksrc/configparms + # glibc fails to build if -march not set for a minimal cpu. + if [ "$xbps_machine" != "x86_64" ]; then + echo "CFLAGS+=-march=${xbps_machine%%-*} -mtune=generic" \ + >> $wrksrc/configparms + fi } pre_install()