Fixed 64-bit compiliation, edited configure script to allow
setting of 64-bit operations
This commit is contained in:
13
configure
vendored
13
configure
vendored
@@ -7,11 +7,14 @@ import subprocess
|
||||
def main():
|
||||
args = parser().parse_args()
|
||||
src_path = os.path.dirname(__file__) or '.'
|
||||
|
||||
# shutil.copy(os.path.realpath(src_path) + '/Makefile.in', os.getcwd() + '/Makefile')
|
||||
|
||||
|
||||
args.flags = ''
|
||||
if args.sixfour:
|
||||
args.flags = '-DENVIRONMENT64'
|
||||
|
||||
open('.config.vars', 'w+').write(
|
||||
'''PREFIX={prefix}
|
||||
FLAGS={flags}
|
||||
'''.format(**vars(args)))
|
||||
|
||||
|
||||
@@ -25,6 +28,10 @@ def parser():
|
||||
'-c', '--compiler', type=str,
|
||||
help='Compiler prefix, such as i686-w64-mingw32-', dest='prefix', metavar='PREFIX', default=''
|
||||
)
|
||||
parser.add_argument(
|
||||
'--64', action='store_const',
|
||||
help='Sets flag for 64-bit compiliation', dest='sixfour', const=True, default=False
|
||||
)
|
||||
return parser
|
||||
|
||||
main()
|
||||
|
Reference in New Issue
Block a user