buildsys: move -Wl linker flags from CFLAGS to LDFLAGS

(requires to also be buildable with clang)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-05-31 13:17:04 +02:00
parent 7be769af36
commit 52c5bfd0f3

View file

@ -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