ProcursusTeam / Procursus

Modern *OS Bootstrap
https://apt.procurs.us
BSD Zero Clause License
893 stars 129 forks source link

Compile using system libraries. #608

Closed CRKatri closed 2 years ago

CRKatri commented 3 years ago

This may be a fairly complicated thing to add, so it may be best to happen after the rewrite, but it would allow compiling a package and link against the libs in /opt/procursus/lib//usr/lib as well as BUILD_BASE/**/lib, this would make compiling things much easier, as you wouldn't have to compile everything yourself, but can install the libs and headers from apt.procurs.us and speed up compiling packages from scratch cause you wouldn't have to compile every dep, just install them.

Diatrus commented 3 years ago

I can think on the logistics of this.

CRKatri commented 3 years ago

One of the main issues I see are validating that the package is installed, for example most packages that have gettext as a build dep only need libintl, figuring out for each gettext build dep that we need libintl-dev installed but not libtextsytle-dev could be quite tricky. But after that it's just a case of adding to CFLAGS, LDFLAGS, etc.

CRKatri commented 2 years ago

This is kind of accomplished using build_tools/setup_base.sh added in be585cb, I won't be doing anything else for this though.