def builder_action_configure_define_opts(self, called_as, log): ret = super().builder_action_configure_define_opts(called_as, log) if self.get_is_crossbuilder(): prefix = wayround_org.utils.path.join( self.get_host_crossbuilders_dir(), self.target ) ret = [ '--prefix={}'.format(prefix), '--mandir={}'.format( wayround_org.utils.path.join( prefix, 'share', 'man' ) ), '--sysconfdir=/etc', '--localstatedir=/var', '--enable-shared' ] + autotools.calc_conf_hbt_options(self) ret += [ '--enable-targets=all', '--enable-64-bit-bfd', '--disable-werror', '--enable-libada', '--enable-libssp', '--enable-objc-gc', '--enable-lto', '--enable-ld', # NOTE: no google software in Lailalo '--disable-gold', '--without-gold', # this is required. else libs will be searched in /lib and # /usr/lib, but not in /multihost/xxx/lib!: '--with-sysroot={}'.format(self.get_host_dir()), # more experiment: '--enable-multiarch', '--enable-multilib', ] if self.get_is_crossbuilder(): ret += ['--with-sysroot'] return ret
def builder_action_configure_define_opts(self, called_as, log): ret = [] ret += [ '--prefix={}'.format(self.calculate_install_prefix()) ] ret += [ #'--includedir=' + # wayround_org.utils.path.join( # self.get_host_arch_dir(), # 'include' # ), #'--localedir=' + # wayround_org.utils.path.join( # self.get_host_arch_dir(), # 'share' # ), # NOTE: removed '--libdir=' because I about to allow # programs to use lib dir name which they desire. # possibly self.calculate_main_multiarch_lib_dir_name() # need to be used here # NOTE: --libdir= needed at least for glibc to point it using # valid 'lib' or 'lib64' dir name. else it can put 64-bit # crt*.o files into 32-bit lib dir # NOTE: using lib for 32 bit and lib64 for 64 bit libs is failed # many programs still can't install in lib64 even if I # trying for force them do. so lib name will be fixed # 'lib' name for ever :E # NOTE: note about crt*.o still in power. can't build gcc with # multilib support and rename lib64 to lib and # place it into another location. so lib and lib64 # need to reamin in one dir # NOTE: 'python', 'tcl' and some other pacakges will install # some libs into 'lib' dir no metter what # '--libdir=' + wayround_org.utils.path.join( # self.get_host_arch_dir(), 'lib'), # '--libdir=' + self.get_host_lib_dir(), # '--libdir=' + wayround_org.utils.path.join( # self.get_host_arch_dir(), # 'lib' # ), '--libdir=' + self.calculate_install_libdir(), '--sysconfdir=/etc', # '--sysconfdir=' + wayround_org.utils.path.join( # self.get_host_arch_dir(), # 'etc' # ), '--localstatedir=/var', '--enable-shared', # WARNING: using --with-sysroot in some cases makes # build processes involving libtool to generate incorrect # *.la files # '--with-sysroot={}'.format(self.get_host_arch_dir()) ] + autotools.calc_conf_hbt_options(self) + \ self.all_automatic_flags_as_list() return ret