python-config on NetBSD 6
Hal Murray
hmurray at megapathdsl.net
Fri Sep 15 06:51:23 UTC 2017
> The basic problem is that python2.7-config --ldflags includes "-lpython2.7"
> but no "-L" to say where to find it. On most platforms, a suitable "-L" is
> included.
I don't know anything about that area, but your "most platforms" seems
optimistic.
NetBSD 7.1 (GENERIC.201703111743Z)
-bash-4.4$ python2.7-config --ldflags
-lpython2.7 -lutil -lm -Wl,--export-dynamic
-bash-4.4$
NetBSD 6.1.5 (GENERIC)
-bash-4.4$ python2.7-config --ldflags
-lpython2.7 -lutil -lm -Wl,--export-dynamic
-bash-4.4$
Fedora release 26 (Twenty Six)
[murray at hgm ~]$ python2.7-config --ldflags
-lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic
[murray at hgm ~]$
OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT 2016
-bash-4.3$ python2.7-config --ldflags
-lpython2.7 -lpthread -lutil -lm -Wl,--export-dynamic
-bash-4.3$
FreeBSD 11.0-RELEASE-p1 (GENERIC) #0 r306420: Thu Sep 29 01:43:23 UTC 2016
[murray at ted3 ~]$ python2.7-config --ldflags
-L/usr/local/lib -lpython2.7 -L/usr/local/lib -lintl -lutil -lm
-Wl,--export-dynamic
[murray at ted3 ~]$
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
murray at deb2:~$ python2.7-config --ldflags
-L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpython2.7 -lpthread
-ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
murray at deb2:~$
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
murray at wp0:~$ python2.7-config --ldflags
-L/usr/lib/python2.7/config-arm-linux-gnueabihf -L/usr/lib -lpython2.7
-lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1
-Wl,-Bsymbolic-functions
murray at wp0:~$
> It seems to affect OpenBSD 5.6 as well.
My setup OpenBSD notes say:
pkg_add python => python-2.7.11
cd /usr/local/bin/
ln -s python2.7 python
ln -s python2.7 python2
--
These are my opinions. I hate spam.
More information about the devel
mailing list