Browse Source

build: Make it possible to build without gcc

The external Makefile hardcodes gcc to get the machine spec.
This should use the configured C compiler instead.

This bug was introduced in 601464416b.
paymod-01
Wladimir J. van der Laan 5 years ago
committed by Rusty Russell
parent
commit
32f9805a30
  1. 2
      external/Makefile

2
external/Makefile

@ -9,7 +9,7 @@ ifdef BUILD
CROSSCOMPILE_OPTS := --host="$(MAKE_HOST)" --build="$(BUILD)" CROSSCOMPILE_OPTS := --host="$(MAKE_HOST)" --build="$(BUILD)"
TARGET_DIR := external/"$(MAKE_HOST)" TARGET_DIR := external/"$(MAKE_HOST)"
else else
TARGET_DIR := external/"$(shell gcc -dumpmachine)" TARGET_DIR := external/"$(shell ${CC} -dumpmachine)"
endif endif
LIBSODIUM_HEADERS := external/libsodium/src/libsodium/include/sodium.h LIBSODIUM_HEADERS := external/libsodium/src/libsodium/include/sodium.h

Loading…
Cancel
Save