mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Add -fpic to armv7/armv8 build
This commit is contained in:
		
							parent
							
								
									6ce903b1d6
								
							
						
					
					
						commit
						1eec0799ca
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -2441,7 +2441,7 @@ def mk_config():
 | 
				
			||||||
                CXXFLAGS     = '%s -O3 -D _EXTERNAL_RELEASE -fomit-frame-pointer' % CXXFLAGS
 | 
					                CXXFLAGS     = '%s -O3 -D _EXTERNAL_RELEASE -fomit-frame-pointer' % CXXFLAGS
 | 
				
			||||||
        if is_CXX_clangpp():
 | 
					        if is_CXX_clangpp():
 | 
				
			||||||
            CXXFLAGS   = '%s -Wno-unknown-pragmas -Wno-overloaded-virtual -Wno-unused-value' % CXXFLAGS
 | 
					            CXXFLAGS   = '%s -Wno-unknown-pragmas -Wno-overloaded-virtual -Wno-unused-value' % CXXFLAGS
 | 
				
			||||||
        sysname = os.uname()[0]
 | 
					        sysname, _, _, _, machine = os.uname()
 | 
				
			||||||
        if sysname == 'Darwin':
 | 
					        if sysname == 'Darwin':
 | 
				
			||||||
            SO_EXT    = '.dylib'
 | 
					            SO_EXT    = '.dylib'
 | 
				
			||||||
            SLIBFLAGS = '-dynamiclib'
 | 
					            SLIBFLAGS = '-dynamiclib'
 | 
				
			||||||
| 
						 | 
					@ -2492,6 +2492,8 @@ def mk_config():
 | 
				
			||||||
            # and to make it create an import library.
 | 
					            # and to make it create an import library.
 | 
				
			||||||
            SLIBEXTRAFLAGS = '%s -static-libgcc -static-libstdc++ -Wl,--out-implib,libz3.dll.a' % SLIBEXTRAFLAGS
 | 
					            SLIBEXTRAFLAGS = '%s -static-libgcc -static-libstdc++ -Wl,--out-implib,libz3.dll.a' % SLIBEXTRAFLAGS
 | 
				
			||||||
            LDFLAGS = '%s -static-libgcc -static-libstdc++' % LDFLAGS
 | 
					            LDFLAGS = '%s -static-libgcc -static-libstdc++' % LDFLAGS
 | 
				
			||||||
 | 
					        if sysname == 'Linux' and machine.startswith('armv7') or machine.startswith('armv8'):
 | 
				
			||||||
 | 
					            CXXFLAGS = '%s -fpic' % CXXFLAGS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        config.write('PREFIX=%s\n' % PREFIX)
 | 
					        config.write('PREFIX=%s\n' % PREFIX)
 | 
				
			||||||
        config.write('CC=%s\n' % CC)
 | 
					        config.write('CC=%s\n' % CC)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue