depot/third_party/nixpkgs/pkgs/applications/science/math/calculix/calculix.patch
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

22 lines
764 B
Diff

diff -Naur a/ccx_2.17/src/Makefile b/ccx_2.17/src/Makefile
--- a/ccx_2.17/src/Makefile 2020-07-23 21:41:38.507761972 +0200
+++ b/ccx_2.17/src/Makefile 2020-08-22 16:53:50.004938281 +0200
@@ -18,15 +18,10 @@
OCCXC = $(SCCXC:.c=.o)
OCCXMAIN = $(SCCXMAIN:.c=.o)
-DIR=../../../SPOOLES.2.2
+LIBS = -lpthread -lm -lc -lspooles -larpack -lblas -llapack
-LIBS = \
- $(DIR)/spooles.a \
- ../../../ARPACK/libarpack_INTEL.a \
- -lpthread -lm -lc
-
-ccx_2.17: $(OCCXMAIN) ccx_2.17.a $(LIBS)
- ./date.pl; $(CC) $(CFLAGS) -c ccx_2.17.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.17.a $(LIBS)
+ccx_2.17: $(OCCXMAIN) ccx_2.17.a
+ $(CC) $(CFLAGS) -c ccx_2.17.c; $(FC) -Wall -O2 -o $@ $(OCCXMAIN) ccx_2.17.a $(LIBS)
ccx_2.17.a: $(OCCXF) $(OCCXC)
ar vr $@ $?