From 341017c208f410fb2301226299a8fb200430937f Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 12 2019 23:45:39 +0000 Subject: https://fedoraproject.org/wiki/Changes/Python_Extension_Flags --- 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