diff --git a/Makefile.webos b/Makefile.webos index c9678d816492..f8fe7dd559f7 100644 --- a/Makefile.webos +++ b/Makefile.webos @@ -128,7 +128,7 @@ LIBS := -ldl -lz -lrt -pthread CFLAGS := CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS ASFLAGS := -LDFLAGS := -Wl,--gc-sections +LDFLAGS := -Wl,--rpath $ORIGIN/lib,--gc-sections INCLUDE_DIRS = -I$(WEBOS_INC_DIR) LIBRARY_DIRS = -L$(WEBOS_LIB_DIR) DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY @@ -232,6 +232,7 @@ ipk: $(TARGET) echo "$$APPINFO" > webos/dist/appinfo.json cp -t webos/dist -vf $(TARGET) webos/icon160.png cp -t webos/dist/lib -vf $(WEBOS_LIB_DIR)/libstdc++.so.6 + cp -t webos/dist/lib -vf $(WEBOS_LIB_DIR)/libSDL2-2.0.so.0 $(STRIP) webos/dist/$(TARGET) cd webos && ares-package dist