From ea4460cb1e2bfa214cec7df8a4d1350bf3e38dbd Mon Sep 17 00:00:00 2001 From: Ron Munitz Date: Sun, 28 Jul 2024 11:20:43 +0200 Subject: [PATCH] Trivially added CROSS_COMPILE and LDFLAGS support to allow static cross compilation --- examples/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index 0783d4a..a8793b2 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,5 +1,5 @@ -CC=gcc -STANDARD_FLAGS=-Werror -std=c11 -pedantic -D_GNU_SOURCE -D_POSIX_SOURCE +CC=$(CROSS_COMPILE)gcc +STANDARD_FLAGS=$(LDFLAGS) -Werror -std=c11 -pedantic -D_GNU_SOURCE -D_POSIX_SOURCE DEBUG_FLAGS=-DDEBUG -g -Wall RELEASE_FLAGS=-O2 -Wall DEFP=-DFBG_PARALLEL