Statically linking libgomp seems impossible
This commit is contained in:
		
							parent
							
								
									0d2bd6fede
								
							
						
					
					
						commit
						fbbdbf4905
					
				
					 1 changed files with 14 additions and 2 deletions
				
			
		| 
						 | 
					@ -14,8 +14,20 @@ RUN --mount=src=ct-ng-config,dst=/.config \
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Prepare "cross" environment to heavily favour static builds
 | 
					# Prepare "cross" environment to heavily favour static builds
 | 
				
			||||||
RUN \
 | 
					RUN \
 | 
				
			||||||
    find /opt/ct-ng -type l -and -name '*.so' -and -not -ipath '*plugin*' -and -not -name 'libdl.*' -and -not -name 'libc.*' -and -not -name 'libm.*' -delete && \
 | 
					    find /opt/ct-ng -type l \
 | 
				
			||||||
    find /opt/ct-ng -name 'libdl.a' -or -name 'libc.a' -or -name 'libm.a' -delete
 | 
					        -and -name '*.so' \
 | 
				
			||||||
 | 
					        -and -not -ipath '*plugin*' \
 | 
				
			||||||
 | 
					        -and -not -name 'libdl.*' \
 | 
				
			||||||
 | 
					        -and -not -name 'libc.*' \
 | 
				
			||||||
 | 
					        -and -not -name 'libm.*' \
 | 
				
			||||||
 | 
					        -and -not -name 'libgomp.*' \
 | 
				
			||||||
 | 
					        -delete && \
 | 
				
			||||||
 | 
					    find /opt/ct-ng \
 | 
				
			||||||
 | 
					        -name 'libdl.a' \
 | 
				
			||||||
 | 
					        -or -name 'libc.a' \
 | 
				
			||||||
 | 
					        -or -name 'libm.a' \
 | 
				
			||||||
 | 
					        -or -name 'libgomp.a' \
 | 
				
			||||||
 | 
					        -delete
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ADD toolchain.cmake /toolchain.cmake
 | 
					ADD toolchain.cmake /toolchain.cmake
 | 
				
			||||||
ADD cross.meson /cross.meson
 | 
					ADD cross.meson /cross.meson
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue