Skip to content

Commit

Permalink
remove -m64 flag for architectures other than x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Oct 28, 2024
1 parent 968d710 commit 6b8b534
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ builddependencies = [
('binutils', '2.37'),
]

# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it
if ARCH != 'x86_64':
preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && '

configopts = '--disable-cxx --disable-fortran --disable-ompi '

# Comment it out if you have Xeon Phi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ builddependencies = [
('binutils', '2.38'),
]

# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it
if ARCH != 'x86_64':
preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && '

configopts = '--disable-cxx --disable-fortran --disable-ompi '

# Comment it out if you have Xeon Phi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ builddependencies = [
('binutils', '2.39'),
]

# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it
if ARCH != 'x86_64':
preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && '

configopts = '--disable-cxx --disable-fortran --disable-ompi '

# Comment it out if you have Xeon Phi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ builddependencies = [
('binutils', '2.40'),
]

# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it
if ARCH != 'x86_64':
preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && '

configopts = '--disable-cxx --disable-fortran --disable-ompi '

# Comment it out if you have Xeon Phi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ builddependencies = [
('binutils', '2.40'),
]

# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it
if ARCH != 'x86_64':
preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && '

configopts = '--disable-cxx --disable-fortran --disable-ompi '

# Comment it out if you have Xeon Phi:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ builddependencies = [
('binutils', '2.42'),
]

# remove -m64 flag from PFLAG variable in Makefiles for CPU architectures that don't support it
if ARCH != 'x86_64':
preconfigopts = 'sed -i "s|PFLAG = -m\\$(PREC)|PFLAG = |" mf/Makefile.defs.linux-gomp* && '

configopts = '--disable-cxx --disable-fortran --disable-ompi '

# Comment it out if you have Xeon Phi:
Expand Down

0 comments on commit 6b8b534

Please sign in to comment.