[vlc-commits] apple/build: Fix libvlc-full-static.a build

Marvin Scholz git at videolan.org
Sat Dec 21 22:12:55 CET 2019


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sat Dec 21 01:12:52 2019 +0100| [ef076e36bdf1389174195eebf6cc12ec14bee2c4] | committer: Marvin Scholz

apple/build: Fix libvlc-full-static.a build

The CFLAGS were not honored so the module list was always compiled for
the native compiler. When later combining the objects with libtool,
it would create a FAT binary with a x86_64 part containing just the
module list and an ARM part containing everything else.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ef076e36bdf1389174195eebf6cc12ec14bee2c4
---

 extras/package/apple/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/package/apple/build.sh b/extras/package/apple/build.sh
index c6b81c37ba..70015b3f5d 100755
--- a/extras/package/apple/build.sh
+++ b/extras/package/apple/build.sh
@@ -692,7 +692,7 @@ VLC_STATIC_MODULELIST_NAME="static-module-list"
 rm -f "${VLC_STATIC_MODULELIST_NAME}.c" "${VLC_STATIC_MODULELIST_NAME}.o"
 gen_vlc_static_module_list "${VLC_STATIC_MODULELIST_NAME}.c" "${VLC_PLUGINS_SYMBOL_LIST[@]}"
 
-${CC:-cc} -c "${VLC_STATIC_MODULELIST_NAME}.c" \
+${CC:-cc} -c  ${CFLAGS} "${VLC_STATIC_MODULELIST_NAME}.c" \
   || abort_err "Compiling module list file failed"
 
 echo "${VLC_BUILD_DIR}/build/${VLC_PSEUDO_TRIPLET}/build-sh/${VLC_STATIC_MODULELIST_NAME}.o" \



More information about the vlc-commits mailing list