LibreELEC.tv icon indicating copy to clipboard operation
LibreELEC.tv copied to clipboard

elfutils: cleanup _CONFIGURE_OPTS

Open heitbaum opened this issue 2 years ago • 3 comments

remove unknown options from build.

  • fixes build warning:
    • configure: WARNING: unrecognized options: --disable-static, --enable-shared

heitbaum avatar Mar 02 '24 04:03 heitbaum

Would not be better to make little smarter way of removing this flags because multiple packages emits this warning.

vpeter4 avatar Mar 02 '24 20:03 vpeter4

Would not be better to make little smarter way of removing this flags because multiple packages emits this warning.

There have been a few with this (or similar) - this one just found while testing. I had though about a FLAG option in passing, but not sure where to start this bigger change…

heitbaum avatar Mar 02 '24 22:03 heitbaum

I did a bit of a check. Here are all the package.mk that use sed in this way. In the case of _OPTS - only 3 - need to check the output of a full build and see the prevalence of the warning.

git grep "=.*sed -" packages/ | grep package.mk | grep -v -e VDR_APIVERSION -e RELEASE_VERSION
packages/addons/addon-depends/vdr/package.mk:  export LDFLAGS="$(echo ${LDFLAGS} | sed -e "s|-Wl,--as-needed||") -L${SYSROOT_PREFIX}/usr/lib/iconv"
packages/addons/service/lcdd/package.mk:  drivers="none|$(cat ${PKG_BUILD}/.${TARGET_NAME}/config.log | sed -n "s|^DRIVERS=' \(.*\)'|\1|p" | sed "s|.so||g" | tr ' ' '|')"
packages/databases/sqlite/package.mk:  CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-O3|g")
packages/databases/sqlite/package.mk:  CFLAGS=$(echo ${CFLAGS} | sed -e "s|-ffast-math||g")
packages/debug/xorg-intel-gpu-tools/package.mk:  export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-DNDEBUG||g")
packages/devel/elfutils/package.mk:  HOST_CONFIGURE_OPTS=$(echo ${HOST_CONFIGURE_OPTS} | sed -e "s|--disable-static||" -e "s|--enable-shared||")
packages/devel/elfutils/package.mk:  TARGET_CONFIGURE_OPTS=$(echo ${TARGET_CONFIGURE_OPTS} | sed -e "s|--disable-static||" -e "s|--enable-shared||")
packages/devel/glibc/package.mk:  export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-ffast-math||g")
packages/devel/glibc/package.mk:  export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-O2|g")
packages/devel/glibc/package.mk:  export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O.|-O2|g")
packages/devel/glibc/package.mk:  export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Wunused-but-set-variable||g")
packages/devel/glibc/package.mk:    export CFLAGS=$(echo ${CFLAGS} | sed -e "s|${PROJECT_CFLAGS}||g")
packages/devel/glibc/package.mk:  export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-ffast-math||g")
packages/devel/glibc/package.mk:  export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-Ofast|-O2|g")
packages/devel/glibc/package.mk:  export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-O.|-O2|g")
packages/devel/glibc/package.mk:  export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-Wl,--as-needed||")
packages/lang/nasm/package.mk:  HOST_CONFIGURE_OPTS=$(echo ${HOST_CONFIGURE_OPTS} | sed -e "s|--disable-static||" -e "s|--enable-shared||")
packages/mediacenter/kodi-binary-addons/game.libretro.scummvm/package.mk:  export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-Wl,--as-needed||")
packages/mediacenter/kodi-binary-addons/visualization.projectm/package.mk:  export LDFLAGS=$(echo ${LDFLAGS} | sed -e "s|-Wl,--as-needed||")
packages/network/rsync/package.mk:  HOST_CONFIGURE_OPTS=$(echo ${HOST_CONFIGURE_OPTS} | sed -e "s|--disable-static||" -e "s|--enable-shared||")
packages/network/rsync/package.mk:  TARGET_CONFIGURE_OPTS=$(echo ${TARGET_CONFIGURE_OPTS} | sed -e "s|--disable-static||" -e "s|--enable-shared||")
packages/sysutils/busybox/package.mk:    CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-Os|")
packages/sysutils/busybox/package.mk:    CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O.|-Os|")
packages/sysutils/busybox/package.mk:    CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-Os|")
packages/sysutils/busybox/package.mk:    CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O.|-Os|")
packages/wayland/weston/package.mk:  export TARGET_CFLAGS=$(echo ${TARGET_CFLAGS} | sed -e "s|-DNDEBUG||g")
packages/x11/other/fontconfig/package.mk:  CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O3|-O2|")
packages/x11/other/fontconfig/package.mk:  CXXFLAGS=$(echo ${CXXFLAGS} | sed -e "s|-O3|-O2|")

heitbaum avatar Mar 03 '24 21:03 heitbaum