Home :: Documentation :: Download :: Development :: Community :: Wiki :: Ports :: Bugs :: Links :: About
Welcome to CRUX bug tracking.
Tasklist

FS#227 - Support for non-standard library locations in pkgutils6

Attached to Project: CRUX
Opened by Lucas Hazel (nipuL) - Wednesday, 20 February 2008, 03:49 GMT+2
Task Type Improvement
Category tools → pkgutils
Status Assigned
Assigned To Tilman Sauerbeck (tilman)
Operating System CRUX
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I wanted to have a play with this at uni and hack together a usermode version so I could have package management for software I install in $HOME/.local

I try to build pkgutils with extra enviroment variables for my local include and libraries, and I get:

$ env VERBOSE=1 CFLAGS="-I$HOME/.local/usr/include -O2" LD_LIBRARY_PATH=/home/lhazel/.local/usr/lib make

cc -shared -larchive lib/bst.o lib/list.o lib/pkg_package.o lib/pkg_package_entry.o lib/pkg_database.o -o lib/libpkgutils.so
/usr/bin/ld: cannot find -larchive

The extra library paths are not detected, even though ld _should_ use LD_LIBRARY_PATH.

I'm not sure what would be the best way to do this, either put CFLAGS and CPPFLAGS into the lib/%.o target or use += instead of := for LD_LIBFLAGS, or something all together.
This task depends upon

Loading...