Honor libvlc/libvlccorelibrary versions
[vlc.git] / projects / macosx / framework / Pre-Compile.sh
index 3a4b485..c25c321 100644 (file)
@@ -153,8 +153,10 @@ if test "${ACTION}" = "build"; then
         esac
     done
 
-    install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library"
-    install_library "${VLC_BUILD_DIR}/src/${prefix}libvlccore.dylib" ${target_lib} "library"
+    install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.2.dylib" "${target_lib}" "library"
+    install_library "${VLC_BUILD_DIR}/src/${prefix}libvlccore.2.dylib" "${target_lib}" "library"
+    ln -sf ${target_lib}/libvlc.2.dylib ${target_lib}/libvlc.dylib
+    ln -sf ${target_lib}/libvlccore.2.dylib ${target_lib}/libvlccore.dylib
 
     ##########################
     # Build the share folder