[vlc-devel] [PATCH] src: fix fourcc_gen build on OS/2

KO Myung-Hun komh78 at gmail.com
Fri Jun 19 06:41:45 CEST 2015


---
 configure.ac    | 1 +
 src/Makefile.am | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 495a17d..ab5cd39 100644
--- a/configure.ac
+++ b/configure.ac
@@ -303,6 +303,7 @@ case "${host_os}" in
     SYS=os2
     LDFLAGS="${LDFLAGS} -Zomf -Zbin-files -Zargs-wild -Zhigh-mem"
     AC_LIBOBJ([freeaddrinfo])
+    test -z "$BUILDCC" && BUILDCC="gcc -std=gnu99"
     ;;
   *)
     SYS="${host_os}"
diff --git a/src/Makefile.am b/src/Makefile.am
index e608e4d..e3b72b5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -518,13 +518,13 @@ SOURCES_libvlc = \
 # FourCC tables
 BUILT_SOURCES += fourcc_tables.h
 EXTRA_DIST += misc/fourcc_gen.c
-MOSTLYCLEANFILES = fourcc_gen
+MOSTLYCLEANFILES = fourcc_gen$(EXEEXT)
 
-fourcc_gen: misc/fourcc_gen.c misc/fourcc_list.h ../include/vlc_fourcc.h
+fourcc_gen$(EXEEXT): 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$(EXEEXT)
 	$(AM_V_at)rm -f -- $@.tmp
 	$(AM_V_GEN)$(builddir)/fourcc_gen > $@.tmp
 	$(AM_V_at)mv -f -- $@.tmp $@
-- 
1.9.5




More information about the vlc-devel mailing list