* [PATCH] i2c-tools: py-smbus linker issue in arch
@ 2015-03-05 12:36 Michael Göhler
0 siblings, 0 replies; only message in thread
From: Michael Göhler @ 2015-03-05 12:36 UTC (permalink / raw)
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
Hi,
this fixes a linker issue in py-smbus for Arch-Linux
(https://aur.archlinux.org/packages/python-smbus/) and makes it possible
to run setup.py independently again.
Thanks!
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: i2c-tools-arch-linker-issue.patch --]
[-- Type: text/x-diff; name=i2c-tools-arch-linker-issue.patch, Size: 901 bytes --]
Index: py-smbus/Module.mk
===================================================================
--- py-smbus/Module.mk (revision 6277)
+++ py-smbus/Module.mk (working copy)
@@ -12,7 +12,7 @@
PYTHON ?= python
DISTUTILS := \
cd $(PY_SMBUS_DIR) && \
- CPPFLAGS="$(CPPFLAGS) -I../include" LDFLAGS="$(LDFLAGS) -Llib -li2c" $(PYTHON) setup.py
+ $(PYTHON) setup.py
all-python: $(INCLUDE_DIR)/i2c/smbus.h
$(DISTUTILS) build
Index: py-smbus/setup.py
===================================================================
--- py-smbus/setup.py (revision 6277)
+++ py-smbus/setup.py (working copy)
@@ -11,4 +11,10 @@
maintainer_email="linux-i2c@vger.kernel.org",
license="GPLv2",
url="http://lm-sensors.org/",
- ext_modules=[Extension("smbus", ["smbusmodule.c"])])
+ ext_modules=[Extension(
+ "smbus",
+ ["smbusmodule.c"],
+ extra_compile_args=['-I../include'],
+ extra_link_args=['-li2c']
+ )]
+)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-05 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-05 12:36 [PATCH] i2c-tools: py-smbus linker issue in arch Michael Göhler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).