From: Wolfgang Bumiller Date: Wed, 31 May 2023 11:17:04 +0000 (+0200) Subject: buildsys: move -Wl linker flags from CFLAGS to LDFLAGS X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=52c5bfd0f3edf0303b2df7c25d303b78260eaba1;hp=7be769af3651a8666fb3ece67a85484107d8f03e;p=pve-cluster.git buildsys: move -Wl linker flags from CFLAGS to LDFLAGS (requires to also be buildable with clang) Signed-off-by: Wolfgang Bumiller --- diff --git a/src/pmxcfs/Makefile b/src/pmxcfs/Makefile index 743f949..c0cf740 100644 --- a/src/pmxcfs/Makefile +++ b/src/pmxcfs/Makefile @@ -5,11 +5,11 @@ CC = gcc CFLAGS += -std=gnu99 CFLAGS += -Wall -Werror -Wno-unknown-pragmas -Wno-strict-aliasing CFLAGS += -Wpedantic -CFLAGS += -g -O2 -Wl,-z,relro +CFLAGS += -g -O2 CFLAGS += -I. CFLAGS += $(shell pkg-config --cflags ${DEPENDENCIES}) -LDFLAGS += $(shell pkg-config --libs ${DEPENDENCIES}) +LDFLAGS += -Wl,-z,relro $(shell pkg-config --libs ${DEPENDENCIES}) AR = ar ARFLAGS = crs