File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ LSHW_CHECKSUM="5805eba5f31886582fff673c5dccdb3b"
33LSHW_LINK=" https://github.com/lyonel/lshw/archive/refs/tags/${LSHW_VERSION} .tar.gz"
44
55download_lshw () {
6- download_file $LSHW_LINK $ LSHW_CHECKSUM lshw-${LSHW_VERSION} .tar.gz
6+ download_file ${ LSHW_LINK} ${ LSHW_CHECKSUM} lshw-${LSHW_VERSION} .tar.gz
77}
88
99dependencies_lshw () {
@@ -23,8 +23,8 @@ prepare_lshw() {
2323
2424compile_lshw () {
2525 pushd src
26- make -C core ${MAKEOPTS} VERSION= " ${LSHW_VERSION} "
27- make ${MAKEOPTS} VERSION= " ${LSHW_VERSION} " LDFLAGS= " - static -L./core/ " CXXFLAGS= " -g -Wall -I./core/ -fno-pie "
26+ # Build static binary
27+ make static
2828 popd
2929}
3030
@@ -35,7 +35,8 @@ install_lshw() {
3535 mkdir -p " ${ROOTDIR} /usr/share/man/man1"
3636 mkdir -p " ${ROOTDIR} /usr/share/lshw"
3737
38- cp src/lshw " ${ROOTDIR} /usr/sbin/"
38+ # Install the static binary
39+ cp src/lshw-static " ${ROOTDIR} /usr/sbin/lshw"
3940 chmod +x " ${ROOTDIR} /usr/sbin/lshw"
4041
4142 cp src/lshw.1 " ${ROOTDIR} /usr/share/man/man1/"
You can’t perform that action at this time.
0 commit comments