Skip to content

Commit bbb11c3

Browse files
committed
Makefile: Use := instead of = when shelling out.
1 parent c3c0292 commit bbb11c3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

core/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ NO_PKG_CONFIG_LIBS := -lglog -lgflags -lprotobuf -lgrpc++ -lunwind -lz
9595
NO_PKG_CONFIG_LIBS_INDIRECT := -lgrpc -lssl -lcrypto -llzma
9696

9797
ifeq ($(HAS_PKG_CONFIG), yes)
98-
PKG_CFLAGS = $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_DEPS))
98+
PKG_CFLAGS := $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_DEPS))
9999
else
100-
PKG_CFLAGS =
100+
PKG_CFLAGS :=
101101
endif
102102

103103
# Plugins get to look in $COREDIR through -I $(COREDIR). Let them also
@@ -138,18 +138,18 @@ ifdef BESS_LINK_DYNAMIC
138138
LIBS_ALL_SHARED = -Wl,-call_shared
139139
LIBS_DL_SHARED =
140140
ifeq ($(HAS_PKG_CONFIG), yes)
141-
PKG_LIBS = $(shell $(PKG_CONFIG) --libs $(PKG_CONFIG_DEPS))
141+
PKG_LIBS := $(shell $(PKG_CONFIG) --libs $(PKG_CONFIG_DEPS))
142142
else
143-
PKG_LIBS = $(NO_PKG_CONFIG_LIBS)
143+
PKG_LIBS := $(NO_PKG_CONFIG_LIBS)
144144
endif
145145
else # Used static libraries
146146
LIBS_ALL_SHARED =
147147
LIBS_DL_SHARED = -Wl,-call_shared
148148
LDFLAGS += -static-libstdc++
149149
ifeq ($(HAS_PKG_CONFIG), yes)
150-
PKG_LIBS = $(shell $(PKG_CONFIG) --static --libs $(PKG_CONFIG_DEPS))
150+
PKG_LIBS := $(shell $(PKG_CONFIG) --static --libs $(PKG_CONFIG_DEPS))
151151
else
152-
PKG_LIBS = $(NO_PKG_CONFIG_LIBS) $(NO_PKG_CONFIG_LIBS_INDIRECT)
152+
PKG_LIBS := $(NO_PKG_CONFIG_LIBS) $(NO_PKG_CONFIG_LIBS_INDIRECT)
153153
endif
154154
endif
155155

0 commit comments

Comments
 (0)