diff options
-rw-r--r-- | agl-basefiles/share/agl.mk | 49 | ||||
-rwxr-xr-x | agl-systemd/env.txt | 6 | ||||
-rwxr-xr-x | hal/boot_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/can_hal/src/Makefile | 3 | ||||
-rwxr-xr-x | hal/clock_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/deck_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/input_hal/Makefile | 1 | ||||
-rwxr-xr-x | hal/nv_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/positioning_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/power_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/security_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/soc_temperature_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/usb_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/vehicle_hal/Makefile | 5 | ||||
-rwxr-xr-x | hal/video_in_hal/Makefile | 2 |
15 files changed, 33 insertions, 78 deletions
diff --git a/agl-basefiles/share/agl.mk b/agl-basefiles/share/agl.mk index 3723ead..9369fd3 100644 --- a/agl-basefiles/share/agl.mk +++ b/agl-basefiles/share/agl.mk @@ -193,14 +193,14 @@ endef ## for libc ## AGLCPPFLAGS += -D_GNU_SOURCE -## for libPosixBased001Legacy +## for libPosixBased001Legacy AGLCPPFLAGS += -DAGL_PosixBasedOS001LEGACY_USED -DAGL_STUB -DLINUX ## for agl header## AGLCPPFLAGS += -I=/usr/include/basesystem ## for agl library## -AGLLDFLAGS += -L=/usr/lib/basesystem +AGLLDFLAGS += -L=/usr/lib ifneq ($(INST_SHLIBS),libagl_stub) AGLLDLIBS += -Wl,-Bdynamic -lpthread @@ -212,7 +212,7 @@ endif COMPONENT_NAME ?= $(error COMPONENT_NAME is not defined) AGL_TOPDIR ?= $(DESTDIR)/usr AGL_INCDIR := $(AGL_TOPDIR)/include/basesystem -AGL_LIBDIR := $(AGL_TOPDIR)/lib/basesystem +AGL_LIBDIR := $(AGL_TOPDIR)/lib AGL_BINDIR := $(AGL_TOPDIR)/bin AGL_PIXMAPDIR := $(AGL_TOPDIR)/pixmaps AGL_UCODEDIR := $(AGL_TOPDIR)/data/ucode @@ -255,10 +255,10 @@ DEL_INFO = $(filter %.info, \ SOBJS = $(DEL_SOBJS) $($(1)_PCOS) DEPS = $(join $(dir $(DEL_OBJS)),$(patsubst %.o,.%.d,$(notdir $(DEL_OBJS)))) -INST_TEST_MOCK_LIBS := -INST_TEST_MOCK_SHLIBS := -INST_ITV2_TESTPROGS := -INST_TESTPROGS := +INST_TEST_MOCK_LIBS := +INST_TEST_MOCK_SHLIBS := +INST_ITV2_TESTPROGS := +INST_TESTPROGS := CLEAN_OBJS := $(foreach lib,$(INST_LIBS) $(INST_SHLIBS) $(INST_TEST_MOCK_LIBS) $(INST_TEST_MOCK_SHLIBS) $(NOINST_LIBS) $(INST_PROGS) $(INST_ITV2_TESTPROGS) $(INST_TESTPROGS),$(call DEL_OBJS,$(lib))) CLEAN_SOBJS := $(foreach lib,$(INST_SHLIBS) $(INST_TEST_MOCK_SHLIBS),$(call DEL_SOBJS,$(lib))) @@ -271,9 +271,9 @@ CLEAN_INFO := $(sort $(foreach lib,$(INST_LIBS) $(INST_SHLIBS) $(INST_TEST_MOCK_ LIB_DEPS := $(foreach lib,$(INST_LIBS) $(INST_SHLIBS) $(INST_TEST_MOCK_LIBS) $(INST_TEST_MOCK_SHLIBS) $(NOINST_LIBS),$(call DEPS,$(lib))) PROG_DEPS := $(foreach prog,$(INST_PROGS),$(call DEPS,$(prog))) -TESTPROGS_DEPS := +TESTPROGS_DEPS := PROG_RULES := $(foreach prog,$(INST_PROGS),$(if $(prog),.$(prog).out.rule)) -TESTPROG_RULES := +TESTPROG_RULES := LIB_RULES := $(foreach lib,$(INST_LIBS) $(INST_SHLIBS) $(NOINST_LIBS) $(INST_TEST_MOCK_LIBS),$(if $($(lib)_SRCS),.$(lib).a.rule)) SHLIB_RULES := $(foreach lib,$(INST_SHLIBS) $(INST_TEST_MOCK_SHLIBS),$(if $(lib),.$(lib).so.rule)) @@ -324,10 +324,6 @@ CLEAN_FILES += $(foreach lib,$(INST_SHLIBS) $(INST_PROGS),$(if $(lib),$(lib).map endif ################################################################################# - -# RPATHLINK := $(SYSROOT)/usr/lib:$(SYSROOT)/lib:$(SYSROOT)/usr/lib/basesystem - -################################################################################# SUBDIRS := $(filter-out mock,$(SUBDIRS)) .PHONY: all all-subdirs install test $(SUBDIRS:%=all-%) $(SUBDIRS:%=install--%) @@ -343,7 +339,7 @@ SUBDIRS := $(filter-out mock,$(SUBDIRS)) .PHONY: install-prog $(SUBDIRS:%=install-prog-%) .PHONY: install-data $(SUBDIRS:%=install-data-%) .PHONY: install-cfg $(SUBDIRS:%=install-cfg-%) -.PHONY: install-preload +.PHONY: install-preload .PHONY: clean-all .PHONY: clean-self .PHONY: clean-sub $(SUBDIRS:%=clean-%) @@ -493,7 +489,7 @@ endif .%.out.rule: @echo '$*.out: $$(call OBJS,$*)' > $@ @echo ' @rm -f $$(@:%=.%.libdep)' >> $@ - @echo ' $$(LINK) $$(AGLLDFLAGS) -Wl,-rpath=$$(RPATH) -Wl,-rpath-link=$$(RPATHLINK),-Map=$$(@:%.out=%.map) $$(call OBJS,$*) $($(*F)_LDLIBS) $$(AGLLDLIBS) -o $$@' >> $@ + @echo ' $$(LINK) $$(AGLLDFLAGS) -Wl,-Map=$$(@:%.out=%.map) $$(call OBJS,$*) $($(*F)_LDLIBS) $$(AGLLDLIBS) -o $$@' >> $@ @echo ' @awk '\''$$$$1=="LOAD" && $$$$2~/\.a$$$$/{print("$$@:", $$$$2);print($$$$2 ":")}'\'' $$(@:%.out=%.map) > $$(@:%=.%.libdep)' >> $@ .%.a.rule: @@ -503,7 +499,7 @@ endif .%.so.rule: @echo '$*.so: $$(call SOBJS,$*)' > $@ @echo ' $$(call INST_DUMMY,$*.so)' >> $@ - @test -f $*.ver && echo ' $$(LINK_SHLIB) -shared $$(AGLLDFLAGS) $($(*F)_LDFLAGS) $$(AGLLDLIBS) -Wl,-rpath=$$(RPATH) -Wl,-soname=$*.so,-Map=$$(@:%.so=%.map),--version-script,$*.ver $$^ -o $$@' >> $@ || echo ' $$(LINK_SHLIB) -shared $$(AGLLDFLAGS) $($(*F)_LDFLAGS) $$(AGLLDLIBS) -Wl,-rpath=$$(RPATH) -Wl,-soname=$*.so,-Map=$$(@:%.so=%.map) $$^ -o $$@' >> $@ + @test -f $*.ver && echo ' $$(LINK_SHLIB) -shared $$(AGLLDFLAGS) $($(*F)_LDFLAGS) $$(AGLLDLIBS) -Wl,-soname=$*.so,-Map=$$(@:%.so=%.map),--version-script,$*.ver $$^ -o $$@' >> $@ || echo ' $$(LINK_SHLIB) -shared $$(AGLLDFLAGS) $($(*F)_LDFLAGS) $$(AGLLDLIBS) -Wl,-soname=$*.so,-Map=$$(@:%.so=%.map) $$^ -o $$@' >> $@ @echo ' $$(call CLEAN_DUMMY)' >> $@ .%.ipc.rule: @@ -579,29 +575,29 @@ endif ################################################################################# ifeq ($(MAKECMDGOALS),all) --include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),) --include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),install) --include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),install-test) --include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),install-test-exec) --include $(PROG_RULES) $(TESTPROG_RULES) $(PROG_DEPS) $(TESTPROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(PROG_RULES) $(TESTPROG_RULES) $(PROG_DEPS) $(TESTPROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),test) --include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),run-ct-local) --include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),run-itv2-local) @@ -609,17 +605,17 @@ ifeq ($(MAKECMDGOALS),run-itv2-local) endif ifeq ($(MAKECMDGOALS),run-ut-local) --include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),run-it-local) --include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif ifeq ($(MAKECMDGOALS),test-exec) --include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) +-include $(TESTPROG_RULES) $(PROG_RULES) $(PROG_DEPS) $(PROG_LIBDEPS) $(SHLIB_RULES) $(LIB_RULES) $(LIB_DEPS) $(ARLIB_RULES) endif @@ -652,4 +648,3 @@ ifneq ($(IPC_API_RULES),) -include $(IPC_API_RULES) $(IPC_API_DEPS) endif endif - diff --git a/agl-systemd/env.txt b/agl-systemd/env.txt index 15df506..8ba84be 100755 --- a/agl-systemd/env.txt +++ b/agl-systemd/env.txt @@ -1,17 +1,11 @@ VEHICLEPARAMETERLIBRARY_AREA="AREA1" -XDG_RUNTIME_DIR="/run/user/0" AGL_NFS="y" VEHICLEPARAMETERLIBRARY_BRAND="BRAND1" LIBTHAI_DICTDIR="/usr/share/libthai" TERM="xterm" INIT_UID="1000" INIT_GID="1000" -AGL_RWDATA_PATH="/nv" -LD_LIBRARY_PATH="/lib:/usr/lib:/usr/lib/basesystem:/usr/debug/lib" ARB_OPT="FORCE_REBOOT" -PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/debug/bin:/usr/debug/sbin:/usr/debug/usr/bin:/usr/debug/usr/sbin" -PWD="/dev/mqueue" -OLDPWD="/dev/mqueue" SHLVL="1" ALSA_CONFIG_PATH="/usr/share/alsa/alsa.conf" GPF_LOGFLAG="0x00000003" diff --git a/hal/boot_hal/Makefile b/hal/boot_hal/Makefile index ddbb183..26070ad 100755 --- a/hal/boot_hal/Makefile +++ b/hal/boot_hal/Makefile @@ -29,13 +29,10 @@ CXXFLAGS += -include agl_types_deprecated.h CXXFLAGS += -Wall -fPIC ######### link options ########################## -LDFLAGS += -L=/usr/lib/basesystem LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -RPATH := - ######### linked library ######################## LIBS += -Wl,-Bdynamic -lNS_FrameworkUnified @@ -48,7 +45,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/can_hal/src/Makefile b/hal/can_hal/src/Makefile index 73a7099..1af9874 100755 --- a/hal/can_hal/src/Makefile +++ b/hal/can_hal/src/Makefile @@ -38,9 +38,6 @@ LDFLAGS += -shared LDFLAGS += -Wl,--gc-sections LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := /usr/lib:/usr/lib/basesystem ######### linked library ######################## LDLIBS += -Wl,-Bdynamic -lstdc++ diff --git a/hal/clock_hal/Makefile b/hal/clock_hal/Makefile index 0ad6733..33846c0 100755 --- a/hal/clock_hal/Makefile +++ b/hal/clock_hal/Makefile @@ -33,9 +33,6 @@ CXXFLAGS += -DAGL_REFHW LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -50,7 +47,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/deck_hal/Makefile b/hal/deck_hal/Makefile index 8ed42a7..4e8cd27 100755 --- a/hal/deck_hal/Makefile +++ b/hal/deck_hal/Makefile @@ -32,9 +32,6 @@ CXXFLAGS += -Wall -fPIC LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := /usr/lib ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -50,7 +47,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=:$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/input_hal/Makefile b/hal/input_hal/Makefile index 8e020fc..9d034db 100755 --- a/hal/input_hal/Makefile +++ b/hal/input_hal/Makefile @@ -36,7 +36,6 @@ CXXFLAGS += -D_USE_DRM LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem ######### linked library ######################## LIBS := -Wl,-Bdynamic -lstdc++ diff --git a/hal/nv_hal/Makefile b/hal/nv_hal/Makefile index fa19e24..e05333f 100755 --- a/hal/nv_hal/Makefile +++ b/hal/nv_hal/Makefile @@ -29,13 +29,10 @@ CXXFLAGS += -include agl_types_deprecated.h CXXFLAGS += -Wall -fPIC ######### link options ########################## -LDFLAGS += -L=/usr/lib/basesystem LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -RPATH := - ######### linked library ######################## LIBS += -Wl,-Bdynamic -lNS_FrameworkUnified @@ -48,7 +45,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/positioning_hal/Makefile b/hal/positioning_hal/Makefile index 9366766..90ff314 100755 --- a/hal/positioning_hal/Makefile +++ b/hal/positioning_hal/Makefile @@ -37,9 +37,6 @@ CXXFLAGS += -DLINUX -D__CWORD71__VEHICLE_ -D__CWORD71_ LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := /usr/lib ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -72,7 +69,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=:$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/power_hal/Makefile b/hal/power_hal/Makefile index e2aa118..c5cf661 100755 --- a/hal/power_hal/Makefile +++ b/hal/power_hal/Makefile @@ -31,9 +31,6 @@ CXXFLAGS += -Wall -fPIC LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := /usr/lib/basesystem ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -48,7 +45,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/security_hal/Makefile b/hal/security_hal/Makefile index 7ff287f..7d6e5e5 100755 --- a/hal/security_hal/Makefile +++ b/hal/security_hal/Makefile @@ -32,9 +32,6 @@ CXXFLAGS += -Wall -fPIC LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -49,7 +46,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/soc_temperature_hal/Makefile b/hal/soc_temperature_hal/Makefile index 602297e..f333599 100755 --- a/hal/soc_temperature_hal/Makefile +++ b/hal/soc_temperature_hal/Makefile @@ -32,9 +32,6 @@ CXXFLAGS += -Wall -fPIC LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -49,7 +46,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/usb_hal/Makefile b/hal/usb_hal/Makefile index 9d5529d..ae182ec 100755 --- a/hal/usb_hal/Makefile +++ b/hal/usb_hal/Makefile @@ -32,9 +32,6 @@ CXXFLAGS += -Wall -fPIC LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -49,7 +46,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/vehicle_hal/Makefile b/hal/vehicle_hal/Makefile index 3d3d945..8f5708d 100755 --- a/hal/vehicle_hal/Makefile +++ b/hal/vehicle_hal/Makefile @@ -32,9 +32,6 @@ CXXFLAGS += -Wall -fPIC LDFLAGS += -shared LDFLAGS += -Wl,--no-as-needed LDFLAGS += -Wl,--no-undefined -LDFLAGS += -L=/usr/lib/basesystem - -RPATH := /usr/lib ######### linked library ######################## LIBS += -Wl,-Bdynamic -lstdc++ @@ -51,7 +48,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=:$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### diff --git a/hal/video_in_hal/Makefile b/hal/video_in_hal/Makefile index cdbdfdf..9ad16ce 100755 --- a/hal/video_in_hal/Makefile +++ b/hal/video_in_hal/Makefile @@ -45,7 +45,7 @@ all: $(TARGET) @echo $@ done. $(TARGET): $(OBJS) - $(CC) $(LDFLAGS) -Wl,-rpath=$(RPATH) $(OBJS) $(LIBS) -o $(TARGET) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET) @echo $@ done. ######### make cleans ########################### |