gptfdisk: fix incorrect TARGET on non-linux host
authorGeorgi Valkov <gvalkov@gmail.com>
Tue, 8 Aug 2023 07:27:26 +0000 (10:27 +0300)
committerTianling Shen <cnsztl@immortalwrt.org>
Sun, 13 Aug 2023 09:56:33 +0000 (17:56 +0800)
commit0878b2e8129bfb2857a37e53caecf8eea9d976ef
tree455b93f82710e8285d735cf8c748c91441132605
parenta43594a7822a7fb0d3863ac12efdf725fa377dba
gptfdisk: fix incorrect TARGET on non-linux host

Fixed by defining TARGET=linux, as suggested in the README.

By default TARGET is derived from the host using uname -s,
which produces build errors on a non-linux hosts:

TARGET is not set; trying to determine target based on host OS....
Detected OS is Darwin
Build target is macos
...
x86_64-openwrt-linux-musl-g++: error: unrecognized command-line option '-arch'

Helped-by: Tianling Shen <cnsztl@immortalwrt.org>
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
(cherry picked from commit 94315cfaa896756bcd8e088d3dc609b6232beb23)
utils/gptfdisk/Makefile