Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88d59e9675 | ||
|
|
71367025d9 | ||
|
|
32947340bf |
34
Makefile
34
Makefile
@@ -9,14 +9,16 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
export SRCPKG = gcc
|
export SRCPKG = gcc
|
||||||
export DEPENDS = glibc,gmp,libgcc,libstdc++,mpc,mpfr,zlib
|
export DEPENDS = dash,glibc,gmp,libgcc,libstdc++,mpc,mpfr,zlib
|
||||||
|
export BUILDDEPS = gcc,libgcc-dev
|
||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = https://gcc.gnu.org/
|
export URL = https://gcc.gnu.org/
|
||||||
|
REPO = dev
|
||||||
BRIEF = GNU compiler collection
|
BRIEF = GNU compiler collection
|
||||||
DESC = The GNU Compiler Collection includes front ends for C, C++, \
|
DESC = The GNU Compiler Collection includes front ends for C, C++, \
|
||||||
Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these \
|
Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these \
|
||||||
languages (libstdc++, libgcj,...).
|
languages (libstdc++, libgcj,...).
|
||||||
SNAPVER = 2
|
SLVER = 5
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
@@ -25,14 +27,16 @@ PATCHDIR := $(PWD)/SRC/patches
|
|||||||
BUILDDIR := $(PWD)/BUILD
|
BUILDDIR := $(PWD)/BUILD
|
||||||
MACHINE := $(gcc -dumpmachine)
|
MACHINE := $(gcc -dumpmachine)
|
||||||
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
||||||
sed 's/^-//')-$(SNAPVER)
|
sed 's/^-//')-$(SLVER)
|
||||||
|
|
||||||
LIBGCC := $(PWD)/libgcc
|
LIBGCC := $(PWD)/libgcc
|
||||||
LIBGCCROOT := $(LIBGCC)/ROOT
|
LIBGCCROOT := $(LIBGCC)/ROOT
|
||||||
|
LIBGCCDEV := $(PWD)/libgcc-dev
|
||||||
|
LIBGCCDEVROOT := $(LIBGCCDEV)/ROOT
|
||||||
LIBSTDC := $(PWD)/libstdc++
|
LIBSTDC := $(PWD)/libstdc++
|
||||||
LIBSTDCROOT := $(LIBSTDC)/ROOT
|
LIBSTDCROOT := $(LIBSTDC)/ROOT
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|
||||||
$(SRCDIR)/configure: $(ARCHIVE)
|
$(SRCDIR)/configure: $(ARCHIVE)
|
||||||
@echo "Extracting archive..."
|
@echo "Extracting archive..."
|
||||||
@@ -93,17 +97,27 @@ $(ROOT): $(BUILDDIR)/gcc
|
|||||||
$(ROOT)/usr/share/gdb/auto-load/usr/lib && \
|
$(ROOT)/usr/share/gdb/auto-load/usr/lib && \
|
||||||
rm -v $(ROOT)/usr/share/info/dir
|
rm -v $(ROOT)/usr/share/info/dir
|
||||||
|
|
||||||
@install -v -d $(LIBGCC)/SNAP && \
|
@install -v -d $(LIBGCC)/SL && \
|
||||||
install -v -d $(LIBGCCROOT) && \
|
install -v -d $(LIBGCCROOT) && \
|
||||||
install -v -d $(LIBSTDC)/SNAP && \
|
install -v -d $(LIBGCCDEV)/SL && \
|
||||||
|
install -v -d $(LIBGCCDEVROOT) && \
|
||||||
|
install -v -d $(LIBSTDC)/SL && \
|
||||||
install -v -d $(LIBSTDCROOT) && \
|
install -v -d $(LIBSTDCROOT) && \
|
||||||
install -v -d -m 755 $(LIBGCCROOT)/usr/lib && \
|
install -v -d -m 755 $(LIBGCCROOT)/usr/lib && \
|
||||||
|
install -v -d -m 755 $(LIBGCCDEVROOT)/usr/lib && \
|
||||||
install -v -d -m 755 $(LIBSTDCROOT)/usr/lib && \
|
install -v -d -m 755 $(LIBSTDCROOT)/usr/lib && \
|
||||||
mv -v $(ROOT)/usr/lib64/libgcc_s.so* $(LIBGCCROOT)/usr/lib && \
|
mv -v $(ROOT)/usr/lib64/libgcc_s.so* $(LIBGCCROOT)/usr/lib && \
|
||||||
mv -v $(ROOT)/usr/lib64/libstdc++* $(LIBSTDCROOT)/usr/lib && \
|
mv -v $(ROOT)/usr/lib64/libstdc++* $(LIBSTDCROOT)/usr/lib && \
|
||||||
|
for file in `find $(ROOT)/usr/lib64 \( -type f -o -type l \) \
|
||||||
|
-maxdepth 1`; do \
|
||||||
|
path=`dirname $$file|sed "s[$(ROOT)[$(LIBGCCDEVROOT)["`; \
|
||||||
|
mkdir -p $$path; \
|
||||||
|
mv $$file $$path; \
|
||||||
|
done && \
|
||||||
find $(ROOT) -type d -empty -delete && \
|
find $(ROOT) -type d -empty -delete && \
|
||||||
cd $(LIBGCC) && make -f ../Makefile.libgcc && mv *.snap ../ && \
|
cd $(LIBGCC) && make -f ../Makefile.libgcc && mv *.slp ../ && \
|
||||||
cd $(LIBSTDC) && make -f ../Makefile.libstdc++ && mv *.snap ../
|
cd $(LIBGCCDEV) && make -f ../Makefile.libgcc-dev && mv *.slp ../ && \
|
||||||
|
cd $(LIBSTDC) && make -f ../Makefile.libstdc++ && mv *.slp ../
|
||||||
|
|
||||||
test: $(ROOT)
|
test: $(ROOT)
|
||||||
@cd $(BUILDDIR); \
|
@cd $(BUILDDIR); \
|
||||||
@@ -112,10 +126,10 @@ test: $(ROOT)
|
|||||||
clean:
|
clean:
|
||||||
@rm -rvf $(ROOT) \
|
@rm -rvf $(ROOT) \
|
||||||
$(LIBGCC) \
|
$(LIBGCC) \
|
||||||
|
$(LIBGCCDEV) \
|
||||||
$(LIBSTDC) \
|
$(LIBSTDC) \
|
||||||
$(SNAPINFO) \
|
$(SLINFO) \
|
||||||
$(MANIFEST) \
|
$(MANIFEST) \
|
||||||
$(FILES) \
|
$(FILES) \
|
||||||
$(SRCDIR) \
|
$(SRCDIR) \
|
||||||
$(BUILDDIR)
|
$(BUILDDIR)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,9 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS =
|
DEPENDS = glibc
|
||||||
|
REPO = main
|
||||||
BRIEF = Run time library for some gcc compiled binaires
|
BRIEF = Run time library for some gcc compiled binaires
|
||||||
DESC = Run time library for some gcc compiled binaires
|
DESC = Run time library for some gcc compiled binaires
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
16
Makefile.libgcc-dev
Normal file
16
Makefile.libgcc-dev
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# This file is free software; you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
|
# published by the Free Software Foundation here:
|
||||||
|
# (http://www.gnu.org/licenses/gpl-2.0.html)
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
|
DEPENDS = glibc
|
||||||
|
REPO = main
|
||||||
|
BRIEF = Run time library for some gcc compiled binaires
|
||||||
|
DESC = Run time library for some gcc compiled binaires
|
||||||
|
|
||||||
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
@@ -8,8 +8,9 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS =
|
DEPENDS = glibc,libgcc
|
||||||
|
REPO = main
|
||||||
BRIEF = Run time library for C++ binaries
|
BRIEF = Run time library for C++ binaries
|
||||||
DESC = Run time library for C++ binaries
|
DESC = Run time library for C++ binaries
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
Reference in New Issue
Block a user