[RPM] Fix MONO_PATH in RPM dependency generators
[mono.git] / scripts / mono-find-requires.in
index 8bc68ffa13726bb09f21a95c32cec8f4b4ee8cdb..d7b6a325bc32e17394b502c8ec800400359442e1 100644 (file)
@@ -49,6 +49,8 @@ esac
 
 # set LD_LIBRARY_PATH to ensure that libmono is found
 export LD_LIBRARY_PATH=$libdir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
+# and set MONO_PATH to ensure that mscorlib.dll can be found
+export MONO_PATH=$prefix/lib/mono/4.5
 
 REQUIRES=$(
        for i in "${monolist[@]}"; do