Remove unnecessary flags and fix use of libdir instead

This commit is contained in:
Paul W. Frields 2010-12-18 12:33:06 -05:00
parent a03a18f667
commit 4150c3da21
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ diff -uNr xmlstarlet-1.0.3-original/configure.ac xmlstarlet-1.0.3/configure.ac
-[LIBXML_CPPFLAGS="-DLIBXML_STATIC -I$LIBXML_INCDIR"]
+ [: ${LIBXML_INCDIR="`xml2-config --cflags`"}])
+[LIBXML_LIBS="`xml2-config --libs`"]
+[LIBXML_CPPFLAGS="-DLIBXML_STATIC $LIBXML_INCDIR"]
+[LIBXML_CPPFLAGS="$LIBXML_INCDIR"]
XSTAR_LIB_CHECK([LIBXSLT], [xslt-config])
[: ${LIBXSLT_INCDIR="$LIBXSLT_PREFIX/include"}]

View File

@ -32,7 +32,7 @@ commands.
%build
autoreconf -i
%configure --with-libxml-prefix=%{_prefix} --with-libxslt-prefix=%{_prefix}
%configure --libdir=%{_libdir}
make %{?_smp_mflags}
cd $RPM_BUILD_DIR/%{name}-%{version}/doc
xmlto man xmlstarlet-man.xml