tcl binding: pkgIndex.tcl not portable

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

tcl binding: pkgIndex.tcl not portable

Schmitz, Uwe
The pkgIndex.tcl which is generated when using
--enable-tcl contains an absolute path to the shared library.
That is not portable.

It's better to use the $dir variable, which is automatically
created by the package loading process, to locate the
library file, e.g. change lines 1419-1420 in Makefile.in to
-----
pkgIndex.tcl:
        echo 'package ifneeded sqlite3 $(RELEASE) [list load [file join $$dir libtclsqlite3[info sharedlibextension]] sqlite3]' > $@
-----

Although the selection of the right lib extension is delegated
to Tcl.

Regards,
Uwe

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users