diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) . |