Skip to content

Commit c0d7cd3

Browse files
authored
Merge pull request #1799 from martin-frbg/issue1796
Handle conflicting usage of ARCH in at least some BSD environments
2 parents 667f0cc + d3d58f8 commit c0d7cd3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ifeq ($(NOFORTRAN), $(filter 0,$(NOFORTRAN)))
251251
-@echo "LOADOPTS = $(FFLAGS) $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
252252
-@echo "CC = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
253253
-@echo "override CFLAGS = $(LAPACK_CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
254-
-@echo "ARCH = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
254+
-@echo "override ARCH = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
255255
-@echo "ARCHFLAGS = $(ARFLAGS) -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
256256
-@echo "RANLIB = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
257257
-@echo "LAPACKLIB = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc

Makefile.system

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ ifndef TOPDIR
99
TOPDIR = .
1010
endif
1111

12+
# Catch conflicting usage of ARCH in some BSD environments
13+
ifeq ($(ARCH), amd64)
14+
override ARCH=x86_64
15+
endif
16+
1217
NETLIB_LAPACK_DIR = $(TOPDIR)/lapack-netlib
1318

1419
# Default C compiler

0 commit comments

Comments
 (0)