diff options
| author | Georgi Valkov <gvalkov@gmail.com> | 2023-08-08 10:27:26 +0300 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2023-08-09 14:54:45 -0700 |
| commit | 94315cfaa896756bcd8e088d3dc609b6232beb23 (patch) | |
| tree | d26540742eddbd03e7a5faecdfeea9d334137a10 /utils | |
| parent | d86deca765a0bc8e801900fcce805d615ea9baad (diff) | |
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>
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/gptfdisk/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/gptfdisk/Makefile b/utils/gptfdisk/Makefile index 35f34d0a4..4f667166e 100644 --- a/utils/gptfdisk/Makefile +++ b/utils/gptfdisk/Makefile @@ -75,6 +75,7 @@ endef TARGET_CXXFLAGS += -std=c++11 -fno-rtti TARGET_LDFLAGS += -Wl,--as-needed +MAKE_FLAGS += TARGET=linux define Package/gdisk/install $(INSTALL_DIR) $(1)/usr/bin |
