[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg-config not written to $libdir/pkgconfig
From: |
Sven Joachim |
Subject: |
Re: pkg-config not written to $libdir/pkgconfig |
Date: |
Sat, 01 Jun 2019 09:02:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2.50 (gnu/linux) |
On 2019-05-31 22:49 -0400, Jeffrey Walton wrote:
> I'm configuring Ncurses 6.1 with the following variables set in the
> environment:
>
> PREFIX: /usr/local
> LIBDIR: /usr/local/lib64
> PKG_CONFIG_PATH: /usr/local/lib64/pkgconfig
> CPPFLAGS: -I/usr/local/include -DNDEBUG
> CFLAGS: -g2 -O2 -march=native -fPIC -pthread
> CXXFLAGS: -g2 -O2 -march=native -fPIC -pthread
> LDFLAGS: -L/usr/local/lib64 -Wl,-R,/usr/local/lib64
> -Wl,--enable-new-dtags
> LDLIBS: -ldl -lpthread
>
> And the following configure arguments:
>
> CONFIG_OPTS=()
> CONFIG_OPTS+=("--prefix=$PREFIX")
> CONFIG_OPTS+=("--libdir=$LIBDIR")
> CONFIG_OPTS+=("--disable-leaks")
> CONFIG_OPTS+=("--with-shared")
> CONFIG_OPTS+=("--with-cxx-shared")
> CONFIG_OPTS+=("--without-ada")
> CONFIG_OPTS+=("--enable-pc-files")
> CONFIG_OPTS+=("--with-termlib")
> CONFIG_OPTS+=("--disable-root-environ")
> CONFIG_OPTS+=("--with-build-cc=$CC")
> CONFIG_OPTS+=("--with-build-cxx=$CXX")
> CONFIG_OPTS+=("--with-build-cpp=${CPPFLAGS[*]}")
> CONFIG_OPTS+=("--with-build-cflags=${CFLAGS[*]}")
> CONFIG_OPTS+=("--with-build-cxxflags=${CXXFLAGS[*]}")
> CONFIG_OPTS+=("--with-build-ldflags=${LDFLAGS[*]}")
> CONFIG_OPTS+=("--with-build-libs=${LIBS[*]}")
> CONFIG_OPTS+=("PKG_CONFIG_LIBDIR=${PKGCONFIG[*]}")
> CONFIG_OPTS+=("PKG_CONFIG_PATH=${PKGCONFIG[*]}")
>
> PKG_CONFIG_LIBDIR="${PKGCONFIG[*]}" \
> PKG_CONFIG_PATH="${PKGCONFIG[*]}" \
> CPPFLAGS="${CPPFLAGS[*]}" \
> CFLAGS="${CFLAGS[*]}" \
> CXXFLAGS="${CXXFLAGS[*]}" \
> LDFLAGS="${LDFLAGS[*]}" \
> LIBS="${LIBS[*]}" \
> ./configure "address@hidden"
>
> However, after the build and install, the *.pc files are missing:
>
> $ ls /usr/local/lib64/pkgconfig/
> expat.pc libcurl.pc libpcre2-8.pc libssl.pc xerces-c.pc
> guile-2.2.pc libffi.pc libpcre2-posix.pc libtasn1.pc zlib.pc
> hiredis.pc libidn2.pc libpcrecpp.pc libunbound.pc
> hogweed.pc libidn.pc libpcre.pc nettle.pc
> libcares.pc libpcre2-16.pc libpcreposix.pc openssl.pc
> libcrypto.pc libpcre2-32.pc libpsl.pc p11-kit-1.pc
>
> It looks like system files in /usr/lib64/pkgconfig/ are being overwritten.
>
> Am I missing an option, or maybe have an incorrect option?
The option "--with-pkg-config-libdir=…" works for me.
Cheers,
Sven
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: pkg-config not written to $libdir/pkgconfig,
Sven Joachim <=