2019-06-27 08:01:45 +00:00
|
|
|
--- Makefile.orig 2019-06-15 21:23:18.000000000 +0200
|
|
|
|
|
+++ Makefile 2019-06-15 21:52:33.475014820 +0200
|
|
|
|
|
@@ -136,7 +136,7 @@
|
2019-01-08 09:11:46 +00:00
|
|
|
#
|
|
|
|
|
# Flag ordering: arch, then -f, then -m, then -W
|
|
|
|
|
DEBUG_FLAGS := $(if ${DEBUG},-g -O0,-Os)
|
|
|
|
|
-WERROR := -Werror
|
2019-06-27 08:01:45 +00:00
|
|
|
+WERROR :=
|
|
|
|
|
FIRMWARE_FLAGS := -nostdinc -ffreestanding -fno-builtin -fno-stack-protector
|
|
|
|
|
COMMON_FLAGS := -pipe ${WERROR} -Wall -Wstrict-prototypes -Wtype-limits \
|
2019-10-18 15:38:39 +00:00
|
|
|
-Wundef -Wmissing-prototypes -Wno-trigraphs -Wredundant-decls -Wshadow \
|
2019-06-27 08:01:45 +00:00
|
|
|
@@ -237,12 +237,6 @@
|
2018-01-19 12:49:22 +00:00
|
|
|
CXX ?= g++
|
|
|
|
|
PKG_CONFIG ?= pkg-config
|
|
|
|
|
|
|
|
|
|
-# Static?
|
|
|
|
|
-ifneq (${STATIC},)
|
|
|
|
|
-LDFLAGS += -static
|
|
|
|
|
-PKG_CONFIG += --static
|
|
|
|
|
-endif
|
|
|
|
|
-
|
2019-01-08 09:11:46 +00:00
|
|
|
# Optional Libraries
|
|
|
|
|
LIBZIP_VERSION := $(shell ${PKG_CONFIG} --modversion libzip 2>/dev/null)
|
|
|
|
|
HAVE_LIBZIP := $(if ${LIBZIP_VERSION},1)
|
2019-10-18 15:38:39 +00:00
|
|
|
@@ -922,7 +916,6 @@
|
2018-01-19 12:49:22 +00:00
|
|
|
# Link tests for external repos
|
|
|
|
|
${BUILD}/host/linktest/extern: ${HOSTLIB}
|
|
|
|
|
${BUILD}/host/linktest/extern: LIBS = ${HOSTLIB}
|
|
|
|
|
-${BUILD}/host/linktest/extern: LDLIBS += -static
|
|
|
|
|
TEST_OBJS += ${BUILD}/host/linktest/extern.o
|
|
|
|
|
|
|
|
|
|
.PHONY: hostlib
|
2019-10-18 15:38:39 +00:00
|
|
|
@@ -1001,9 +994,6 @@
|
2018-01-19 12:49:22 +00:00
|
|
|
${UTIL_BINS} ${UTIL_BINS_STATIC}: ${UTILLIB}
|
|
|
|
|
${UTIL_BINS} ${UTIL_BINS_STATIC}: LIBS = ${UTILLIB}
|
|
|
|
|
|
|
|
|
|
-# Utilities for auto-update toolkits must be statically linked.
|
|
|
|
|
-${UTIL_BINS_STATIC}: LDFLAGS += -static
|
|
|
|
|
-
|
2019-06-27 08:01:45 +00:00
|
|
|
|
2018-01-19 12:49:22 +00:00
|
|
|
.PHONY: utils
|
|
|
|
|
utils: ${UTIL_BINS} ${UTIL_SCRIPTS}
|
2019-06-27 08:01:45 +00:00
|
|
|
|