mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 11:06:32 +01:00
fix(elfutils): enforce static linking via LDFLAGS env in configure and build stages
This commit is contained in:
parent
fee7d7d02a
commit
280eaba8d5
1 changed files with 3 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ src_configure() {
|
|||
PKG_CONFIG_PATH="${KERNEL_SYSROOT}/lib/pkgconfig:${KERNEL_SYSROOT}/share/pkgconfig" \
|
||||
PKG_CONFIG_LIBDIR="${KERNEL_SYSROOT}/lib/pkgconfig:${KERNEL_SYSROOT}/share/pkgconfig" \
|
||||
CPPFLAGS="-I${KERNEL_SYSROOT}/include" \
|
||||
LDFLAGS="-L${KERNEL_SYSROOT}/lib" \
|
||||
LDFLAGS="-static -L${KERNEL_SYSROOT}/lib" \
|
||||
LD_LIBRARY_PATH="${KERNEL_SYSROOT}/lib" \
|
||||
CC=gcc \
|
||||
AR=ar \
|
||||
|
|
@ -32,14 +32,13 @@ src_configure() {
|
|||
--includedir="${KERNEL_SYSROOT}/include" \
|
||||
--build="${TARGET}" \
|
||||
--host="${TARGET}" \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
--disable-debuginfod \
|
||||
--disable-libdebuginfod
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default_src_compile
|
||||
make "${MAKEJOBS}" \
|
||||
LDFLAGS="-static -L${KERNEL_SYSROOT}/lib"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue