diff --git a/llvm.spec b/llvm.spec index 69bc1ab..ddabc3f 100644 --- a/llvm.spec +++ b/llvm.spec @@ -170,8 +170,9 @@ sed -i s,LLVM_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp %if "%{_lib}" == "lib64" # Nasty hardcoded path -sed -i s,/lib/,/%{_lib}/,g tools/clang/lib/Driver/Tools.cpp \ - tools/clang/test/Preprocessor/iwithprefix.c +sed -i s,"/lib/","/lib64/",g tools/clang/lib/Driver/Tools.cpp \ + tools/clang/test/Driver/dyld-prefix.c +sed -i s,"}lib{","}lib64{",g tools/clang/test/Preprocessor/iwithprefix.c %endif # Only enable target archs otherwise llvm-config is messed up