summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2018-12-06 20:37:59 +0100
committerDidier Raboud <odyx@debian.org>2018-12-06 20:47:27 +0100
commit93e608212f0501ff08304da91c0caecc34bf8546 (patch)
tree085347dbd60ee25cd37d5b1f083e7113f59c32f2
parentb4660ea0afef42fd1c203dba41ba3d2e3d66df09 (diff)
Fix linking of libhpipp and the *ext python extensions
Closes: #886391
-rw-r--r--Makefile.am10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 8d5d78c9f..d8d8be0dd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -306,7 +306,7 @@ dist_pcard_DATA = pcard/__init__.py pcard/photocard.py
# pcardext
pcardextdir = $(pyexecdir)
pcardext_LTLIBRARIES = pcardext.la
-pcardext_la_LDFLAGS = -module -avoid-version
+pcardext_la_LDFLAGS = -module -avoid-version -lpython$(PYTHON_VERSION)m
pcardext_la_SOURCES = pcard/pcardext/pcardext.c pcard/fat.c
pcardext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
@@ -321,7 +321,7 @@ lib_LTLIBRARIES += libhpipp.la
libhpipp_la_SOURCES = protocol/hp_ipp.c protocol/hp_ipp.h protocol/hp_ipp_i.h
libhpipp_la_CFLAGS = -DCONFDIR=\"$(hplip_confdir)\"
libhpipp_la_LDFLAGS = -version-info 0:1:0
-libhpipp_la_LIBADD = libhpmud.la
+libhpipp_la_LIBADD = -lcups libhpmud.la
# cupsext
cupsextdir = $(pyexecdir)
@@ -329,7 +329,7 @@ cupsext_LTLIBRARIES = cupsext.la
cupsext_la_LDFLAGS = -module -avoid-version
cupsext_la_SOURCES = prnt/cupsext/cupsext.c prnt/cupsext/cupsext.h
cupsext_la_CFLAGS = -I$(PYTHONINCLUDEDIR) -Iprotocol
-cupsext_la_LIBADD = -lcups libhpipp.la
+cupsext_la_LIBADD = -lcups -lpython$(PYTHON_VERSION)m libhpipp.la
endif #HPLIP_CLASS_DRIVER
if !HPLIP_CLASS_DRIVER
@@ -341,7 +341,7 @@ dist_scan_DATA = scan/__init__.py scan/sane.py
# scanext
scanextdir = $(pyexecdir)
scanext_LTLIBRARIES = scanext.la
-scanext_la_LDFLAGS = -module -avoid-version -lsane
+scanext_la_LDFLAGS = -module -avoid-version -lsane -lpython$(PYTHON_VERSION)m
scanext_la_SOURCES = scan/scanext/scanext.c
scanext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
endif #SCAN_BUILD
@@ -351,7 +351,7 @@ endif #!HPLIP_CLASS_DRIVER
if !HPLIP_CLASS_DRIVER
hpmudextdir = $(pyexecdir)
hpmudext_LTLIBRARIES = hpmudext.la
-hpmudext_la_LDFLAGS = -module -avoid-version
+hpmudext_la_LDFLAGS = -module -avoid-version -lpython$(PYTHON_VERSION)m
hpmudext_la_SOURCES = io/mudext/hpmudext.c
hpmudext_la_CFLAGS = -I$(PYTHONINCLUDEDIR)
hpmudext_la_LIBADD = libhpmud.la