From c10adcd728be238d8579bf98075a2468f0143cc2 Mon Sep 17 00:00:00 2001 From: nima Date: Tue, 1 Jul 2008 23:14:17 +0000 Subject: Brought main() back into the python module and fixed malloc/free problems. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@7 abc39116-655e-4be6-ad55-d661dc543056 --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3ad3b0c..04f63c1 100644 --- a/Makefile +++ b/Makefile @@ -46,12 +46,9 @@ PROGRAMS != echo dmidecode ; test `uname -m 2>/dev/null` != ia64 && echo biosdec all : $(PROGRAMS) python setup.py clean python setup.py build - #sudo python setup.py install - #python -c 'import dmidecode' - #ldd /usr/lib/python2.4/site-packages/dmidecode.so - gcc -pthread -shared -fPIC build/temp.linux-i686-2.4/dmidecodemodule.o -L. -I/usr/include/python2.4 catsprintf.o dmidecode.o dmiopt.o dmioem.o util.o -o build/lib.linux-i686-2.4/dmidecode.so + #. FIXME: setup.py should be configured such that the following workaround is no longer required... + $(CC) $(LDFLAGS) -pthread -shared -fPIC build/temp.linux-i686-2.4/dmidecodemodule.o -L. -I/usr/include/python2.4 catsprintf.o dmidecode.o dmiopt.o dmioem.o util.o -o build/lib.linux-i686-2.4/dmidecode.so sudo python setup.py install - ldd /usr/lib/python2.4/site-packages/dmidecode.so python -c 'import dmidecode' # -- cgit