summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKoenig, Joerg <Joerg.Koenig@techsat.com>2023-08-26 11:02:25 (GMT)
committerKoenig, Joerg <Joerg.Koenig@techsat.com>2023-08-26 11:02:25 (GMT)
commitaed9d55b4d7db0dc3f0d87d78bef6b91e2dfa958 (patch)
treebce293b8f3235f988e018f2744a07316a70c1c36 /Makefile
parent4c00cd85ed6c211faa4d84a9d14c474bb94790f1 (diff)
downloadcrossarm-aed9d55b4d7db0dc3f0d87d78bef6b91e2dfa958.zip
crossarm-aed9d55b4d7db0dc3f0d87d78bef6b91e2dfa958.tar.gz
crossarm-aed9d55b4d7db0dc3f0d87d78bef6b91e2dfa958.tar.bz2
Fixed linking with abs path to libs
Change-Id: I1c99b09804bb8a8cdd76cb90968ee27e19549145
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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) .