[vlc-devel] [PATCH] src: fix fourcc_gen build on OS/2
KO Myung-Hun
komh78 at gmail.com
Fri Aug 14 06:16:45 CEST 2015
Ping ?
KO Myung-Hun wrote:
> Updated patch according to your commit.
>
> Rémi Denis-Courmont wrote:
>> Le samedi 01 août 2015, 17:12:38 KO Myung-Hun a écrit :
>>> ---
>>> configure.ac | 4 ++++
>>> extras/package/os2/configure.sh | 15 ++++++++++++++-
>>> src/Makefile.am | 6 +++---
>>> 3 files changed, 21 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/configure.ac b/configure.ac
>>> index a3dc3e1..fc9dc28 100644
>>> --- a/configure.ac
>>> +++ b/configure.ac
>>> @@ -317,6 +317,10 @@ case "${build_os}" in
>>> cygwin|msys)
>>> ac_executable_extensions=".exe"
>>> ;;
>>> + os2*)
>>> + BUILDEXEEXT=".exe"
>>> + AC_SUBST(BUILDEXEEXT)
>>
>> Never call AC_SUBST conditionally.
>>
>>> + ;;
>>> *)
>>> ;;
>>> esac
>>> diff --git a/extras/package/os2/configure.sh
>>> b/extras/package/os2/configure.sh index dc954ea..3b07f33 100644
>>> --- a/extras/package/os2/configure.sh
>>> +++ b/extras/package/os2/configure.sh
>>> @@ -45,4 +45,17 @@ export ARCHFLAGS=${ARCHFLAGS-"-march=i486"}
>>> export CFLAGS="${CFLAGS} ${ARCHFLAGS}"
>>> export CXXFLAGS="${CXXFLAGS} ${ARCHFLAGS}"
>>>
>>> -sh "$(dirname $0)"/../../../configure ${OPTIONS} $*
>>> +# find a native gcc for BUILDCC
>>> +saved_IFS="$IFS"
>>> +IFS=";"
>>> +for dir in $PATH; do
>>> + if test -f "$dir/gcc.exe"; then
>>> + BUILDCC="$dir/gcc.exe -std=c99"
>>> + break
>>> + fi
>>> +done
>>> +IFS="$saved_IFS"
>>> +
>>> +export BUILDCC
>>> +
>>> +sh "$(dirname $0)"/../../../configure ${OPTIONS} "$@"
>>
>> You should not need to resolve the path.
>>
>>> diff --git a/src/Makefile.am b/src/Makefile.am
>>> index acebc34..61c65ac 100644
>>> --- a/src/Makefile.am
>>> +++ b/src/Makefile.am
>>> @@ -512,13 +512,13 @@ SOURCES_libvlc = \
>>> # FourCC tables
>>> BUILT_SOURCES += fourcc_tables.h
>>> EXTRA_DIST += misc/fourcc_gen.c
>>> -MOSTLYCLEANFILES = fourcc_gen
>>> +MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
>>>
>>> -fourcc_gen: misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
>>> +fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h
>>> ../include/vlc_fourcc.h $(AM_V_at)rm -f -- $@
>>> $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
>>>
>>> -fourcc_tables.h: fourcc_gen
>>> +fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
>>> $(AM_V_at)rm -f -- $@.tmp
>>> $(AM_V_GEN)$(builddir)/fourcc_gen > $@.tmp
>>> $(AM_V_at)mv -f -- $@.tmp $@
>>
>
>
> 0001-src-fix-fourcc_gen-build-on-OS-2.patch
>
>
> From b7d9c01a50a8f49f719daf5fc121b6ef3fae3416 Mon Sep 17 00:00:00 2001
> From: KO Myung-Hun <komh at chollian.net>
> Date: Wed, 8 Jul 2015 15:56:04 +0900
> Subject: [PATCH] src: fix fourcc_gen build on OS/2
>
> ---
> configure.ac | 4 ++++
> extras/package/os2/configure.sh | 3 ++-
> src/Makefile.am | 6 +++---
> 3 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 7fd0bea..83a6ad9 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -299,9 +299,13 @@ case "${build_os}" in
> cygwin|msys)
> ac_executable_extensions=".exe"
> ;;
> + os2*)
> + BUILDEXEEXT=".exe"
> + ;;
> *)
> ;;
> esac
> +AC_SUBST(BUILDEXEEXT)
>
> dnl Android is linux, but a bit different
> AS_IF([test "$SYS" = linux],[
> diff --git a/extras/package/os2/configure.sh b/extras/package/os2/configure.sh
> index dc954ea..235d7c1 100644
> --- a/extras/package/os2/configure.sh
> +++ b/extras/package/os2/configure.sh
> @@ -44,5 +44,6 @@ OPTIONS="
> export ARCHFLAGS=${ARCHFLAGS-"-march=i486"}
> export CFLAGS="${CFLAGS} ${ARCHFLAGS}"
> export CXXFLAGS="${CXXFLAGS} ${ARCHFLAGS}"
> +export BUILDCC="gcc -std=c99"
>
> -sh "$(dirname $0)"/../../../configure ${OPTIONS} $*
> +sh "$(dirname $0)"/../../../configure ${OPTIONS} "$@"
> diff --git a/src/Makefile.am b/src/Makefile.am
> index acebc34..61c65ac 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -512,13 +512,13 @@ SOURCES_libvlc = \
> # FourCC tables
> BUILT_SOURCES += fourcc_tables.h
> EXTRA_DIST += misc/fourcc_gen.c
> -MOSTLYCLEANFILES = fourcc_gen
> +MOSTLYCLEANFILES = fourcc_gen$(BUILDEXEEXT)
>
> -fourcc_gen: misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
> +fourcc_gen$(BUILDEXEEXT): misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
> $(AM_V_at)rm -f -- $@
> $(AM_V_CC)$(BUILDCC) -I$(srcdir) -o $@ $<
>
> -fourcc_tables.h: fourcc_gen
> +fourcc_tables.h: fourcc_gen$(BUILDEXEEXT)
> $(AM_V_at)rm -f -- $@.tmp
> $(AM_V_GEN)$(builddir)/fourcc_gen > $@.tmp
> $(AM_V_at)mv -f -- $@.tmp $@
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
KO Myung-Hun
Using Mozilla SeaMonkey 2.7.2
Under OS/2 Warp 4 for Korean with FixPak #15
In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM
Korean OS/2 User Community : http://www.ecomstation.co.kr
More information about the vlc-devel
mailing list