OK, a few little tweaks and this is a possible patch, completely untested in terms of the results of building the package but it does at least enable all the CFLAGS required in the old package and allow the package to still build successfully.
Only configure.ac needs to be changed. -- Neil Williams ============= http://www.linux.codehelp.co.uk/
--- pure/osso-gwconnect-1.0.12.debian/configure.ac +++ osso-gwconnect-1.0.12.debian/configure.ac @@ -9,21 +9,13 @@ AC_ISC_POSIX AC_HEADER_STDC -AX_CFLAGS_GCC_OPTION(-std=c99) -#AX_CFLAGS_GCC_OPTION(-pedantic) -AX_CFLAGS_GCC_OPTION(-Wall) -# AX_CFLAGS_GCC_OPTION(-Werror) -AX_CFLAGS_GCC_OPTION(-Wmissing-prototypes) -AX_CFLAGS_GCC_OPTION(-Wmissing-declarations) -AX_CFLAGS_GCC_OPTION(-Wwrite-strings) -AX_CFLAGS_GCC_OPTION(-Wshadow) -AX_CFLAGS_GCC_OPTION(-Wformat-security) -AX_CFLAGS_GCC_OPTION(-Wformat=2) -AX_CFLAGS_GCC_OPTION(-Waggregate-return) -AX_CFLAGS_GCC_OPTION(-Wbad-function-cast) -AX_CFLAGS_GCC_OPTION(-Wpointer-arith) -AX_CFLAGS_GCC_OPTION(-Wundef) -AX_CFLAGS_GCC_OPTION(-Wchar-subscripts) +dnl # ****************************** +dnl # Defaults for GCC +dnl # ****************************** +if test "x$GCC" = "xyes"; then + CFLAGS=${CFLAGS:-"-g2 -Wall"} + CXXFLAGS=${CXXFLAGS:-"-g2 -Wall"} +fi AC_ARG_ENABLE(docs, [ --enable-docs Build DOXYGEN documentation (requires Doxygen)],enable_docs=$enableval,enable_docs=auto) AC_ARG_ENABLE(ossolog, [ --enable-ossolog Enable osso-log support],enable_ossolog=$enableval,enable_ossolog=no) @@ -119,7 +111,7 @@ DBUS_SYS_DIR="$SYSCONFDIR/dbus-1/system.d" fi AC_SUBST(DBUS_SYS_DIR) - +CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wformat-security -Wformat=2 -Waggregate-return -Wbad-function-cast -Wpointer-arith -Wundef -Wchar-subscripts -std=c99" AC_CONFIG_FILES([ Makefile gwconnect.pc
pgpQwnAfNloF0.pgp
Description: PGP signature