[vlc-devel] AppImage for distributing VLC builds for Linux

probono probono at puredarwin.org
Sun May 8 15:22:32 CEST 2016


2016-05-08 14:56 GMT+02:00 Rémi Denis-Courmont <remi at remlab.net>:
> (As per GNU guidelines) GCC ignores its argv[0]. You need a script here,
> unless your GCC build defaults to C99 or C11.

Thanks, it looks like this worked for me:

echo > /usr/bin/c99-gcc <<\EOF
#!/bin/bash
gcc -std=gnu99 "$@"
EOF
chmod a+x /usr/bin/c99-gcc

However, now running into

make[4]: Entering directory `/vlc/modules'
  CXX      demux/adaptive/playlist/libadaptive_plugin_la-BasePeriod.lo
In file included from /usr/include/c++/4.9/atomic:38:0,
                 from ../include/vlc_atomic.h:221,
                 from demux/adaptive/playlist/../plumbing/CommandsQueue.hpp:25,
                 from demux/adaptive/playlist/../plumbing/FakeESOut.hpp:23,
                 from demux/adaptive/playlist/../Streams.hpp:30,
                 from demux/adaptive/playlist/BasePeriod.cpp:31:
/usr/include/c++/4.9/bits/c++0x_warning.h:32:2: error: #error This
file requires compiler and library support for the ISO C++ 2011
standard. This support is currently experimental, and must be enabled
with the -std=c++11 or -std=gnu++11 compiler options.

The following did *not* do the trick:

export CFLAGS="${CFLAGS} -std=gnu11"
export CXXFLAGS="${CXXFLAGS} -std=gnu++11"
export BUILDCC="gcc -std=gnu11"
./configure --disable-chromaprint --disable-ncurses --disable-cddb
--disable-xcb --prefix=/usr
make


More information about the vlc-devel mailing list