Don't use default CFLAGS, CXXFLAGS from autotools

Before this commit, autotools will inject `-g -O2` to debug build
(`--enable-debug=yes`) and rendering the result binary useless. This
commit fixes it.
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.70/html_node/C_002b_002b-Compiler.html

Closes #14032.
This commit is contained in:
Chocobo1 2020-12-23 15:20:51 +08:00 committed by sledgehammer999
commit 77909e0093
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,8 @@
AC_INIT([qbittorrent], [v4.3.1], [bugs.qbittorrent.org], [], [https://www.qbittorrent.org/])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
: ${CFLAGS=""}
: ${CXXFLAGS=""}
AC_PROG_CC
AC_PROG_CXX
AC_PROG_SED