Changed assignment clobbering LDFLAGS
Assigning LDFLAGS directly wipes out any flags specified by the build pipeline. Is this OK? This way it's much easier to do things like static builds. May consider the same for CFLAGS, etc others also. `LDFLAGS="-static" make -j`
This commit is contained in:
parent
13268c5331
commit
9ee87b4cee
1 changed files with 3 additions and 1 deletions
4
Makefile
4
Makefile
|
@ -64,7 +64,9 @@ OPT = -O3
|
|||
endif
|
||||
CFLAGS = -I. $(OPT) -std=c11 -fPIC
|
||||
CXXFLAGS = -I. -I./common $(OPT) -std=c++11 -fPIC
|
||||
LDFLAGS =
|
||||
|
||||
# Changed to += to not wipe out LDFLAGS from the build pipeline.
|
||||
LDFLAGS +=
|
||||
|
||||
ifdef LLAMA_DEBUG
|
||||
CFLAGS += -O0 -g
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue