]> git.proxmox.com Git - pve-cluster.git/commitdiff
buildsys: move -Wl linker flags from CFLAGS to LDFLAGS
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 31 May 2023 11:17:04 +0000 (13:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 31 May 2023 11:19:11 +0000 (13:19 +0200)
(requires to also be buildable with clang)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/pmxcfs/Makefile

index 743f949ce4b4148a7b21eef9b77cf4caf940c2d1..c0cf740a20bba1f2769e32d2ed966840abff9e73 100644 (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