From 706fb4da889d0996f6d531a85c788cf7630ace9c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 23 Dec 2011 14:46:39 +0100 Subject: [PATCH] glibc: Make package work on x86_64. --- glibc/glibc.nm | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/glibc/glibc.nm b/glibc/glibc.nm index a451dee53..aa4054713 100644 --- a/glibc/glibc.nm +++ b/glibc/glibc.nm @@ -46,11 +46,13 @@ build end # Build glibc with custom cflags - GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG -DPIC + GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG -fPIC -DPIC if "%{DISTRO_ARCH}" == "i686" GLIBC_FLAGS += -march=i686 -mtune=generic - elif "%{DISTRO_ARCH}" == "x86_64" + end + + if "%{DISTRO_ARCH}" == "x86_64" GLIBC_FLAGS += -mtune=generic end @@ -146,7 +148,7 @@ build configure_options = \ --build=%{DISTRO_BUILDTARGET} \ --prefix=/usr \ - --libexecdir=/usr/lib/glibc \ + --libexecdir=%{libdir}/glibc \ --disable-profile \ --enable-add-ons \ --enable-kernel=%{OPTIMIZED_KERNEL} \ @@ -224,18 +226,18 @@ build rm -vf %{BUILDROOT}/etc/ld.so.cache # Include /usr/lib/gconv/gconv-modules.cache - > %{BUILDROOT}/usr/lib/gconv/gconv-modules.cache - chmod 644 %{BUILDROOT}/usr/lib/gconv/gconv-modules.cache + > %{BUILDROOT}%{libdir}/gconv/gconv-modules.cache + chmod 644 %{BUILDROOT}%{libdir}/gconv/gconv-modules.cache - strip -g %{BUILDROOT}/usr/lib/*.o + strip -g %{BUILDROOT}%{libdir}/*.o # Move some libs to correct place - mv -v %{BUILDROOT}/lib/lib{memusage,pcprofile}.so %{BUILDROOT}/usr/lib/ + mv -v %{BUILDROOT}/%{lib}/lib{memusage,pcprofile}.so %{BUILDROOT}%{libdir} end keep_libraries - /usr/lib/libc_nonshared.a - /usr/lib/libpthread_nonshared.a + %{libdir}/libc_nonshared.a + %{libdir}/libpthread_nonshared.a end end @@ -274,7 +276,7 @@ packages requires = glibc-headers=%{thisver} - files = /usr/lib/*.a /usr/lib/*.o + files = %{libdir}/*.a %{libdir}/*.o end package glibc-headers @@ -327,8 +329,8 @@ packages /usr/bin/mtrace /usr/bin/pcprofiledump /usr/bin/xtrace - /usr/lib/libmemusage.so - /usr/lib/libpcprofile.so + %{libdir}/libmemusage.so + %{libdir}/libpcprofile.so end end -- 2.39.2