From aed9d55b4d7db0dc3f0d87d78bef6b91e2dfa958 Mon Sep 17 00:00:00 2001 From: "Koenig, Joerg" Date: Sat, 26 Aug 2023 13:02:25 +0200 Subject: Fixed linking with abs path to libs Change-Id: I1c99b09804bb8a8cdd76cb90968ee27e19549145 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 4567447..b9fdd2c 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ NUMJOBS = $(shell getconf _NPROCESSORS_ONLN 2> /dev/null) SOURCEPATH = $(TOP)/Sources BUILDPATH = $(TOP)/0_BUILD INSTALLPATH = $(TOP)/1_INST/crossarm-$(SUITE) +_installpath = $(shell echo $(INSTALLPATH) | sed 's_/_\\/_g') SYSROOT = $(INSTALLPATH)/sysroot PATCHESPATH = $(TOP)/Patches @@ -33,6 +34,7 @@ build: \ gcc-stage1 \ cross-glibc \ gcc-stage2 \ + final \ pack getpkgversion: @@ -206,6 +208,10 @@ gcc-stage2: cd $(BUILDPATH)/gcc.build && \ make -j $(NUMJOBS) && make install +final: + cd $(INSTALLPATH)/lib && sed -i 's/$(_installpath)/../g' libc.so + cd $(INSTALLPATH)/lib && sed -i 's/$(_installpath)/../g' libpthread.so + pack: cd $(TOP)/1_INST/crossarm-$(SUITE) && tar -jcf $(TOP)/$(PKGNAME) . -- cgit v0.12