Commit 8068e9e2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Unexport symbols that should not be exported from libvlc.so

parent 115ee427
......@@ -387,6 +387,12 @@ BUILTINS="$BUILTINS 0\n};\n"; \
printf "/* Autogenerated from the list of modules */\n$DEFINITION\n$BUILTINS\n" > ${PROJECTPATH}/vlc/.modules/libvlc-modules.c
rm ${REDEFINED_VLC_MODULES_DIR}/syms
# Generating the .ver file like libvlc.so upstream
VER_FILE="vlc/$VLC_BUILD_DIR/lib/.libs/libvlc.ver"
echo "{ global:" > $VER_FILE
cat vlc/lib/libvlc.sym | sed -e "s/\(.*\)/\1;/" >> $VER_FILE
echo "local: *; };" >> $VER_FILE
##################
# Linking VLC #
##################
......@@ -395,6 +401,8 @@ echo -e "\e[1m\e[32mLinking\e[0m"
${CC} -fPIC -rdynamic -shared \
-Lvlc/contrib/${TARGET_TUPLE}/lib \
-Wl,-soname -Wl,libvlc.so.5 -Wl,-version-script \
-Wl,${PROJECTPATH}/$VER_FILE \
-o ${PROJECTPATH}/lib/libvlc.so \
${PROJECTPATH}/vlc/.modules/libvlc-modules.c \
-Wl,--whole-archive \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment