CESNET / libnetconf

C NETCONF library
Other
113 stars 83 forks source link

Fix parallel build -- missing dep of pyapi #194

Closed jktjkt closed 8 years ago

jktjkt commented 8 years ago

Without this change, a parallel build was repeatedly failing on my machine when invoked with -j4. It seems that the Python module was attempting to link with -lnetconf which had not been finished yet:

(...) running build running build_ext building 'netconf' extension creating build creating build/temp.linux-x86_64-3.4 x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python3.4m -c netconf.c -o build/temp.linux-x86_64-3.4/netconf.o -Wall -I../src/ x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python3.4m -c session.c -o build/temp.linux-x86_64-3.4/session.o -Wall -I../src/ creating build/lib.linux-x86_64-3.4 x86_64-pc-linux-gnu-gcc -pthread -shared build/temp.linux-x86_64-3.4/netconf.o build/temp.linux-x86_64-3.4/session.o -L/usr/lib64 -lnetconf -lpython3.4m -o build/lib.linux-x86_64-3.4/netconf.cpython-34m.so -L../.libs/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnetconf