llvm-config: fix to report correct libdir

I noticed that llvm-config is now a c++ app, and it does the wrong
thing completely on Fedora, so hard code the Fedora packaging libdir
in it.
This commit is contained in:
Dave Airlie 2012-06-03 15:42:52 +01:00
parent dcd073e711
commit 9e49469714
1 changed files with 4 additions and 0 deletions

View File

@ -307,6 +307,10 @@ sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' \
# configure does not properly specify libdir
sed -i 's|(PROJ_prefix)/lib|(PROJ_prefix)/%{_lib}/%{name}|g' Makefile.config
# FIXME upstream need to fix this
# llvm-config.cpp hardcodes lib in it
sed -i 's|ActiveLibDir = ActivePrefix + "/lib"|ActiveLibDir = ActivePrefix + "/%{_lib}/%{name}"|g' tools/llvm-config/llvm-config.cpp
make %{_smp_mflags} REQUIRES_RTTI=1 VERBOSE=1 \
%ifarch ppc
OPTIMIZE_OPTION="%{optflags} -fno-var-tracking-assignments -UPPC"