summaryrefslogtreecommitdiffstats
path: root/debian/patches/use-ldflags-with-fiptool-and-cert-create
blob: 05c97236b2ff0b137fb06896d22f5d66c3f87ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Use LDFLAGS when building fiptool and cert_create.

diff --git a/tools/cert_create/Makefile b/tools/cert_create/Makefile
index ca548b836..a823f0dcc 100644
--- a/tools/cert_create/Makefile
+++ b/tools/cert_create/Makefile
@@ -83,7 +83,7 @@ ${BINARY}: ${OBJECTS} Makefile
 	@echo 'const char build_msg[] = "Built : "__TIME__", "__DATE__; \
                 const char platform_msg[] = "${PLAT_MSG}";' | \
                 ${HOSTCC} -c ${HOSTCCFLAGS} -xc - -o src/build_msg.o
-	${Q}${HOSTCC} src/build_msg.o ${OBJECTS} ${LIB_DIR} ${LIB} -o $@
+	${Q}${HOSTCC} src/build_msg.o ${OBJECTS} ${LIB_DIR} ${LIB} ${LDFLAGS} -o $@
 
 %.o: %.c
 	@echo "  HOSTCC  $<"
diff --git a/tools/fiptool/Makefile b/tools/fiptool/Makefile
index e6aeba95b..68a5b2acb 100644
--- a/tools/fiptool/Makefile
+++ b/tools/fiptool/Makefile
@@ -57,7 +57,7 @@ all: ${PROJECT}
 
 ${PROJECT}: --openssl ${OBJECTS} Makefile
 	@echo "  HOSTLD  $@"
-	${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS}
+	${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS} ${LDFLAGS}
 	@${ECHO_BLANK_LINE}
 	@echo "Built $@ successfully"
 	@${ECHO_BLANK_LINE}