From 4203247dee4719545005ec7ab9ea536fc83df1d8 Mon Sep 17 00:00:00 2001 From: Matteo Brancaleoni Date: Wed, 30 Jul 2025 10:44:35 +0200 Subject: [PATCH] Split global ldflags from local ldflags This helps build as rpm inside el10 derivatives --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0b26585..7704db2 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,13 @@ SHELL := /bin/bash PROC?=$(shell uname -m) CMAKE := cmake -CFLAGS=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic +CFLAGS+=-fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic INCLUDES=-I/usr/include -Ibcg729/include -I$(FS_INCLUDES) -LDFLAGS=-lm -Wl,-static -Lbcg729/src -lbcg729 -Wl,-Bdynamic +MOD_LDFLAGS=-lm -Wl,-static -Lbcg729/src -lbcg729 -Wl,-Bdynamic all : mod_bcg729.o - $(CC) $(CFLAGS) $(INCLUDES) -shared -Xlinker -x -o mod_bcg729.so mod_bcg729.o $(LDFLAGS) + $(CC) $(CFLAGS) $(INCLUDES) -shared -Xlinker -x -o mod_bcg729.so mod_bcg729.o $(LDFLAGS) $(MOD_LDFLAGS) mod_bcg729.o: bcg729 mod_bcg729.c $(CC) $(CFLAGS) $(INCLUDES) -c mod_bcg729.c