From 282004b6a32eae294715c8eaa9353ac9a8343c84 Mon Sep 17 00:00:00 2001 From: Tobias Faller Date: Sun, 15 Aug 2021 18:19:57 +0200 Subject: [PATCH] Added fix for screen libutempter dependency --- src/minimal_overlay/bundles/screen/02_build.sh | 11 +++++++++-- src/minimal_overlay/bundles/screen/bundle_deps | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/minimal_overlay/bundles/screen/bundle_deps diff --git a/src/minimal_overlay/bundles/screen/02_build.sh b/src/minimal_overlay/bundles/screen/02_build.sh index 6c11622c2..3b95d009d 100755 --- a/src/minimal_overlay/bundles/screen/02_build.sh +++ b/src/minimal_overlay/bundles/screen/02_build.sh @@ -19,8 +19,15 @@ fi rm -rf $DEST_DIR echo "Configuring '$BUNDLE_NAME'." -CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr +CFLAGS="$CFLAGS -I${OVERLAY_ROOTFS}/include" \ +LDFLAGS="$LDFLAGS -L${OVERLAY_ROOTFS}/lib -L${OVERLAY_ROOTFS}/usr/lib" \ + ./configure --prefix=/usr + +# Remove the dependency to libutempter as it is +# not available on the target system. +echo "Patching configuration of '$BUNDLE_NAME'." +sed -i 's|-lutempter||g' Makefile +sed -i 's|#define HAVE_UTEMPTER 1||g' config.h echo "Building '$BUNDLE_NAME'." make -j $NUM_JOBS diff --git a/src/minimal_overlay/bundles/screen/bundle_deps b/src/minimal_overlay/bundles/screen/bundle_deps new file mode 100644 index 000000000..09d43d28e --- /dev/null +++ b/src/minimal_overlay/bundles/screen/bundle_deps @@ -0,0 +1,2 @@ +ncurses +passwd