Switch all base images to ct-ng based toolchains
This commit is contained in:
		
							parent
							
								
									71994e145a
								
							
						
					
					
						commit
						bdf1cc507a
					
				
					 9 changed files with 1509 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,8 @@
 | 
			
		|||
ARG GH_REPO=btbn/ffmpeg-builds
 | 
			
		||||
FROM ghcr.io/$GH_REPO/base:latest
 | 
			
		||||
 | 
			
		||||
ENV PATH="/opt/ct-ng/bin:${PATH}"
 | 
			
		||||
RUN --mount=src=ct-ng-config,dst=/.config \
 | 
			
		||||
    git clone https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
 | 
			
		||||
    git clone --filter=blob:none https://github.com/crosstool-ng/crosstool-ng.git /ct-ng && cd /ct-ng && \
 | 
			
		||||
    ./bootstrap && \
 | 
			
		||||
    ./configure --enable-local && \
 | 
			
		||||
    make -j$(nproc) && \
 | 
			
		||||
| 
						 | 
				
			
			@ -25,12 +24,14 @@ RUN \
 | 
			
		|||
        -name 'libdl.a' \
 | 
			
		||||
        -or -name 'libc.a' \
 | 
			
		||||
        -or -name 'libm.a' \
 | 
			
		||||
        -delete
 | 
			
		||||
        -delete && \
 | 
			
		||||
    mkdir /opt/ffbuild
 | 
			
		||||
 | 
			
		||||
ADD toolchain.cmake /toolchain.cmake
 | 
			
		||||
ADD cross.meson /cross.meson
 | 
			
		||||
 | 
			
		||||
ENV FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux" \
 | 
			
		||||
ENV PATH="/opt/ct-ng/bin:${PATH}" \
 | 
			
		||||
    FFBUILD_TARGET_FLAGS="--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux" \
 | 
			
		||||
    FFBUILD_TOOLCHAIN=x86_64-ffbuild-linux-gnu \
 | 
			
		||||
    FFBUILD_CROSS_PREFIX="x86_64-ffbuild-linux-gnu-" \
 | 
			
		||||
    FFBUILD_RUST_TARGET="x86_64-unknown-linux-gnu" \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -632,7 +632,7 @@ CT_ALL_CC_CHOICES="GCC"
 | 
			
		|||
# Additional supported languages:
 | 
			
		||||
#
 | 
			
		||||
CT_CC_LANG_CXX=y
 | 
			
		||||
CT_CC_LANG_FORTRAN=y
 | 
			
		||||
# CT_CC_LANG_FORTRAN is not set
 | 
			
		||||
# CT_CC_LANG_ADA is not set
 | 
			
		||||
# CT_CC_LANG_OBJC is not set
 | 
			
		||||
# CT_CC_LANG_OBJCXX is not set
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue