Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ad9d8d0 authored by Ameya Thakur's avatar Ameya Thakur Committed by Linux Build Service Account
Browse files

Fix bug in the handling of LOCAL_HAL_STATIC_LIBRARIES

The lib indicated by LOCAL_HAL_STATIC_LIBRARIES(foo) currently gets appended
to the end of the my_static_libraries list. As a result if foo is the only one
to reference something from the static_libraries_list(bar) we die during
linking since the linker would have stripped out bar. Fix this by prepending
foo to the my_static_libraries list instead.

Change-Id: Iefffcac65dd5f05d9be2d036b42729610d2394b3
parent 9e8bfde3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -269,8 +269,8 @@ include $(BUILD_SYSTEM)/cxx_stl_setup.mk
ifdef LOCAL_HAL_STATIC_LIBRARIES
$(foreach lib, $(LOCAL_HAL_STATIC_LIBRARIES), \
    $(eval b_lib := $(filter $(lib).%,$(BOARD_HAL_STATIC_LIBRARIES)))\
    $(if $(b_lib), $(eval my_static_libraries += $(b_lib)),\
                   $(eval my_static_libraries += $(lib).default)))
    $(if $(b_lib), $(eval my_static_libraries := $(b_lib) $(my_static_libraries)),\
                   $(eval my_static_libraries := $(lib).default $(my_static_libraries))))
b_lib :=
endif