on LVM2.2.02.75/tools/dmsetup.c:2969: undefined reference to `canonicalize_file_name'
Changed files:
lvm2.spec -> 1.166
%{__autoconf}
%if %{with initrd}
-CC="%{__cc}"
+%{?with_glibc:export CC="%{__cc}"}
+%{?with_uClibc:export CC="%{_target_cpu}-uclibc-gcc"}
+%{?with_dietlibc:export CC="diet %{__cc}"}
+
%configure \
- %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
- %{?with_dietlibc:CC="diet ${CC#*ccache }"} \
ac_cv_lib_dl_dlopen=no \
%{?debug:--enable-debug} \
--with-optimisation="%{rpmcflags} -Os" \
mv -f tools/dmsetup.static initrd-dmsetup
%{?with_dietlibc:mv -f libdm/ioctl/libdevmapper.a diet-libdevmapper.a}
%{__make} clean
+
+unset CC
%endif
%configure \