Commit 83f88155 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Export WORDS_BIGENDIAN to pkg-config unless someone knows better

parent 2025f093
...@@ -5598,6 +5598,12 @@ dnl ...@@ -5598,6 +5598,12 @@ dnl
dnl Endianness check dnl Endianness check
dnl dnl
AC_C_BIGENDIAN AC_C_BIGENDIAN
AS_IF([test "${ac_cv_c_bigendian}" = "yes"], [
DEFS_BIGENDIAN="-DWORDS_BIGENDIAN=1"
], [
DEFS_BIGENDIAN=""
])
AC_SUBST(DEFS_BIGENDIAN)
dnl dnl
dnl DLL loader copied from MPlayer copied from somewhere else (WINE ?) dnl DLL loader copied from MPlayer copied from somewhere else (WINE ?)
......
...@@ -7,6 +7,7 @@ cd "$(dirname "$0")" || exit $? ...@@ -7,6 +7,7 @@ cd "$(dirname "$0")" || exit $?
# There are incorrect, as external users don't have our <config.h>. # There are incorrect, as external users don't have our <config.h>.
regexp="$(cat ../config.h.in | \ regexp="$(cat ../config.h.in | \
sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \ sed -n -e 's/^#undef \([A-Z0-9_]*\)$/\1/p' | \
grep -v 'WORDS_BIGENDIAN' | \
xargs | \ xargs | \
sed -e 's/ /\\\|/g')" sed -e 's/ /\\\|/g')"
......
...@@ -10,6 +10,7 @@ Cflags: -I${includedir} -I${includedir}/vlc/plugins \ ...@@ -10,6 +10,7 @@ Cflags: -I${includedir} -I${includedir}/vlc/plugins \
-D_FILE_OFFSET_BITS=64 \ -D_FILE_OFFSET_BITS=64 \
-D__USE_UNIX98 \ -D__USE_UNIX98 \
-D_LARGEFILE64_SOURCE \ -D_LARGEFILE64_SOURCE \
@DEFS_BIGENDIAN@ \
-D_REENTRANT \ -D_REENTRANT \
-D_THREAD_SAFE -D_THREAD_SAFE
Libs: -L${libdir} -lvlccore Libs: -L${libdir} -lvlccore
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