nixpkgs/pkgs/applications/science/math/calculix/calculix.patch

23 lines
764 B
Diff
Raw Normal View History

2020-08-22 16:12:30 +01:00
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 @@
2019-08-14 17:18:38 +01:00
OCCXC = $(SCCXC:.c=.o)
OCCXMAIN = $(SCCXMAIN:.c=.o)
-DIR=../../../SPOOLES.2.2
+LIBS = -lpthread -lm -lc -lspooles -larpack -lblas -llapack
2019-08-14 17:18:38 +01:00
-LIBS = \
- $(DIR)/spooles.a \
- ../../../ARPACK/libarpack_INTEL.a \
- -lpthread -lm -lc
-
2020-08-22 16:12:30 +01:00
-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)
2019-08-14 17:18:38 +01:00
2020-08-22 16:12:30 +01:00
ccx_2.17.a: $(OCCXF) $(OCCXC)
2019-08-14 17:18:38 +01:00
ar vr $@ $?