[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linking with python
From: |
Paul Emsley |
Subject: |
linking with python |
Date: |
Thu, 05 Jul 2012 11:47:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Hi,
maybe you know, just in case not...
You allow use of bespoke python build for the most part. There is an
issue in the linking though - I had to make the following change so that
gdb was linked with my python rather than the system one. I suppose
that you should set some sort of PYTHONLIBS variable that contains the
path to the relevant libs (somewhat like you do for INTERNAL_CPP_FLAGS).
CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY)
$(LIBDECNUMBER) \
$(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) -ldl -lncurses -lz -lm
-lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic \
$(LIBEXPAT) \
$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY)
$(LIBDECNUMBER) \
$(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) -ldl -lncurses -lz -lm
-lpthread -ldl -lutil -lm -L$(MY_PYTHON)/lib -lpython2.7 -Xlinker
-export-dynamic \
$(LIBEXPAT) \
$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
Incidentally, the reason why I was compiling was this:
$ gdb `which python` core.23394
gdb: symbol lookup error: gdb: undefined symbol:
PyUnicodeUCS4_FromEncodedObject
confusion with unicode...
Regards,
Paul.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- linking with python,
Paul Emsley <=