[vlc-commits] [Git][videolan/vlc][master] contrib: set RANLIB for toolchain.cmake
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat Jul 3 21:09:42 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
ec951971 by Mehdi Sabwat at 2021-07-03T18:06:12+00:00
contrib: set RANLIB for toolchain.cmake
This commit will allow taking into account $RANLIB when we are cross compiling contribs that use cmake.
When cross compiling Openjpeg with emscripten sdk, for example, the build system
won't be able to use emranlib (ranlib targetting the $HOST).
cf: https://emscripten.org/docs/compiling/Building-Projects.html#troubleshooting
- - - - -
1 changed file:
- contrib/src/main.mak
Changes:
=====================================
contrib/src/main.mak
=====================================
@@ -597,6 +597,7 @@ else
endif
endif
echo "set(CMAKE_AR $(AR) CACHE FILEPATH \"Archiver\")" >> $@
+ echo "set(CMAKE_RANLIB $(RANLIB) CACHE FILEPATH \"Add index to Archive\")" >> $@
ifdef HAVE_CROSS_COMPILE
echo "set(_CMAKE_TOOLCHAIN_PREFIX $(HOST)-)" >> $@
ifdef HAVE_ANDROID
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ec9519715e69c63d99fbf660ff3d79c25d23169e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ec9519715e69c63d99fbf660ff3d79c25d23169e
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list