Commit dbee7b96 authored by Andreas Tille's avatar Andreas Tille
Browse files

Use pkg-config to correctly detect libpython3.7m

parent c5fc8d13
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,7 +14,8 @@ Build-Depends: debhelper-compat (= 12),
               python3-dev,
               python3-numpy,
               scons (>= 3.1.1-4),
               dos2unix
               dos2unix,
               pkg-config
Standards-Version: 4.4.1
Vcs-Browser: https://salsa.debian.org/med-team/pdb2pqr
Vcs-Git: https://salsa.debian.org/med-team/pdb2pqr.git
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ fix_hardening_no_relro
fix_no_debug_symbols_warning
spelling.patch
2to3.patch
use_pkg-config.patch
+14 −0
Original line number Diff line number Diff line
Description: Use pkg-config to correctly detect libpython3.7m
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 12 Dec 2019 15:41:47 +0100

--- a/SConscript-main.py
+++ b/SConscript-main.py
@@ -81,6 +81,7 @@ env = Environment(variables=vars,
 
 
 python_lib = 'python' + gcv('VERSION')
+env.ParseConfig('pkg-config --cflags --libs python3')
 env.Append(LIBS=[python_lib])
 #To get swig to work on windows.
 #env.Append(ENV={'PATH' : os.environ['PATH']})