tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Why libpython.so is linked with bare cc, not ${CC}?



Hi,

In configure script of python, for many platforms, like,
 LDSHARED='${CC} -shared'" ${LDFLAGS}"jjjjj
but for NetBSD and DragonFly
 LDSHARED="cc -shared ${LDFLAGS}"

Why not ${CC} for NetBSD and DragonFly?

"-pthread" flag is added to ${CC}, and libpython.so is using pthread_create(3).
For NetBSD, -lpthread is added to LIBS, so libpython.os will be linked with 
libpthread,
but not for DragonFly, then, libpython.so is missing reference to 
pthread_create(3).
python executable is linked with ${CC}, so not broken.
At least, for DragonFly, using ${CC} for ${LDSHARED} resolve PR#42598,
so OK to change for DragonFly if anyone have objection for NetBSD?

--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index