[pypy-issue] Issue #2080: _sqlite3_build.py on FreeBSD doesn't obey LDFLAGS et al (pypy/pypy)
HawkOwl
issues-reply at bitbucket.org
Wed Jul 15 06:55:43 CEST 2015
New issue 2080: _sqlite3_build.py on FreeBSD doesn't obey LDFLAGS et al
https://bitbucket.org/pypy/pypy/issues/2080/_sqlite3_buildpy-on-freebsd-doesnt-obey
HawkOwl:
I'm packaging with:
```
cd /tmp/pypy-build/pypy/tool/release
export CPPFLAGS=\"-I/opt/crossbar/include -O3 -march=core2 -mtune=generic\" CXX=\"clang++36\" CFLAGS=\"-I/opt/crossbar/include -O3 -march=core2 -mtune=generic\" LDFLAGS=\"-L/opt/crossbar/lib -Wl,-s -Wl,-rpath,/opt/crossbar/lib\" CC=\"clang36\" PKG_CONFIG_PATH=\"/opt/crossbar/lib/pkgconfig/\"
/usr/bin/env python2 package.py --without-tk --archive-name pypy_built --targetdir ~/
```
`/opt/crossbar/lib` contains:
```
lrwxr-xr-x 1 crossbar wheel 19 Jul 14 14:55 libsqlite3.so -> libsqlite3.so.0.8.6
lrwxr-xr-x 1 crossbar wheel 19 Jul 14 14:55 libsqlite3.so.0 -> libsqlite3.so.0.8.6
-rwxr-xr-x 1 crossbar wheel 1229776 Jul 14 14:55 libsqlite3.so.0.8.6
```
`/opt/crossbar/include` contains:
```
-rw-r--r-- 1 crossbar wheel 378697 Jul 14 14:55 sqlite3.h
-rw-r--r-- 1 crossbar wheel 27763 Jul 14 14:55 sqlite3ext.h
```
If I don't have sqlite3 on the system, it says it can't find sqlite. If I install global sqlite, then compile it, and run `ldd`, it says:
```
pypy_built/lib_pypy/_sqlite3_cffi.pypy-26.so:
libsqlite3.so.0 => /opt/crossbar/lib/libsqlite3.so.0 (0x801609000)
libc.so.7 => /lib/libc.so.7 (0x80081f000)
libthr.so.3 => /lib/libthr.so.3 (0x801935000)
```
So the build can't find the local lib, but it links against it anyway if there's the global one?
More information about the pypy-issue
mailing list