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:
parent
7be769af36
commit
52c5bfd0f3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue