diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-07-26 14:11:48 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo.salveti@linaro.org> | 2016-07-26 15:38:57 -0300 |
commit | b0f76ad6fb9ff068754f12acc3a331669ce4f5c0 (patch) | |
tree | d91f1c03d241bbad639ea5c5a1cedecba8451838 /mk/rte.lib.mk | |
parent | 776aee4547a9a43a11b4fa8f7b37aa1ed83a8554 (diff) |
Imported Upstream version 16.07-rc5
Change-Id: I1780a4c3b475eaf7e08e8ea67fba3a5257daa39c
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'mk/rte.lib.mk')
-rw-r--r-- | mk/rte.lib.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/rte.lib.mk b/mk/rte.lib.mk index 0187ae85..830f81a6 100644 --- a/mk/rte.lib.mk +++ b/mk/rte.lib.mk @@ -93,8 +93,12 @@ O_TO_A_DO = @set -e; \ $(O_TO_A) && \ echo $(O_TO_A_CMD) > $(call exe2cmd,$(@)) +ifneq ($(CC_SUPPORTS_Z),false) +NO_UNDEFINED := -z defs +endif + O_TO_S = $(LD) -L$(RTE_SDK_BIN)/lib $(_CPU_LDFLAGS) $(EXTRA_LDFLAGS) \ - -shared $(OBJS-y) -z defs $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) + -shared $(OBJS-y) $(NO_UNDEFINED) $(LDLIBS) -Wl,-soname,$(LIB) -o $(LIB) O_TO_S_STR = $(subst ','\'',$(O_TO_S)) #'# fix syntax highlight O_TO_S_DISP = $(if $(V),"$(O_TO_S_STR)"," LD $(@)") O_TO_S_DO = @set -e; \ |