builtin flags for built-in modules
pic flags for PIC code
MODULE any available module (dummy, gtk, avi, etc.)
+ libs flags for external libs
BLAH
exit $1
}
#
if [ "${debug}" = yes ]; then
cppflags="${cppflags} -DDEBUG"
- cflags="${cflags} -g ${cflags_werror}"
+ cflags="${cflags} -g"
cxxflags="${cxxflags} -g"
objcflags="${objcflags} -g"
ldflags="${ldflags} -g"
echo_builtin=yes
cppflags="${cppflags} -D__LIBVLC__ -D__BUILTIN__"
;;
+ libs)
+ # Avoid to use werror on what is not vlc's code.
+ cflags_werror=""
+ ;;
pic)
;;
mozilla)
cppflags="${cppflags} -DMODULE_NAME=${module} -DMODULE_NAME_IS_${module} -DMODULE_STRING=\"${module}\""
fi
+#
+# Set the Werror flags.
+#
+
+cflags="${cflags} ${cflags_werror}"
+
#
# Output what we were asked
#