diff --git a/python-mysql.spec b/python-mysql.spec index 25cbb4b..00bb8dc 100644 --- a/python-mysql.spec +++ b/python-mysql.spec @@ -96,12 +96,12 @@ Python3 interface to MySQL, built for the CPython debug runtime %build %py2_build %if %{with debug} -CFLAGS="$RPM_OPT_FLAGS" %{__python2}-debug setup.py build +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{__python2}-debug setup.py build %endif %py3_build %if %{with debug} -CFLAGS="$RPM_OPT_FLAGS" %{__python3}-debug setup.py build +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{__python3}-debug setup.py build %endif