[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Getting pkgconfig to a specific location
From: |
Vincent Fortier |
Subject: |
Getting pkgconfig to a specific location |
Date: |
Mon, 3 Jan 2022 08:36:43 -0500 |
Hi,
I'm a community dev working on the SynoCommunity project. We're using
ncurses for multiple opensource packages that we integrate so they can
be installed on Synology NAS (which uses linux).
While trying to update ncurses to 6.3 I tried (once more) to modify
the pkgconfig location to another location. Under synology NAS each
application is self-contained and installed under
/var/packages/<app>/target. When cross-compiling our installation
prefix is set as such which lead to having pkgconfig directory to sit
under $(INSTALL_PREFIX)/lib/pkgconfig. That $(INSTALL_PREFIX) sits
under our working directory $(INSTALL_DIR).
>From the documentation the following two are obvious:
--prefix=$(INSTALL_PREFIX)
--with-install-prefix=$(INSTALL_DIR) --> or using DESTDIR at make install time
When ever I install ncurses the pkgconfig directory ends-up going
under (cross-compiling x86_64 under x86_64 in this case):
$(INSTALL_DIR)/usr/lib/x86_64-linux-gnu/pkgconfig
I'm doing something similar for terminfo and it works just fine:
--with-terminfo-dirs=$(INSTALL_PREFIX)/share/terminfo
So my obvious choice is is to set the following:
--with-pkg-config-libdir=$(INSTALL_PREFIX)/lib/pkgconfig
It so happen that ncurses install the pkgconfig under:
$(INSTALL_DIR)/home/spksrc/gdbm-ncurse/spksrc/cross/ncurses/work-kvmx64-7.0/install/usr/local/ncurses/lib/pkgconfig/
Which could be summarized as:
$(INSTALL_DIR)/$(INSTALL_DIR)/$(INSTALL_PREFIX)/lib/pkgconfig/
I've tried every possible variation on that theme and it always get to
that same point. I thought it could be a framework environment
variable but haven't found anything yet.
This is normally trivial but I've been spending way more cycles than
expected on something that I thought would be trivial to do.
Help much appreciated :)
- vin (@th0ma7)
For reference:
https://github.com/SynoCommunity/spksrc
https://synocommunity.com/
- Getting pkgconfig to a specific location,
Vincent Fortier <=