Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/core/f2c/src/00-wasm-makefile-ld.patch
1067 views
1
--- native/libf2c/makefile.u 2022-09-09 09:06:24.000000000 -0700
2
+++ wasm/libf2c/makefile.u 2022-09-09 10:03:35.000000000 -0700
3
@@ -20,8 +20,7 @@
4
# compile, then strip unnecessary symbols
5
.c.o:
6
$(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c
7
- ld -r -x -o $*.xxx $*.o
8
- mv $*.xxx $*.o
9
+
10
## Under Solaris (and other systems that do not understand ld -x),
11
## omit -x in the ld line above.
12
## If your system does not have the ld command, comment out
13
@@ -72,8 +71,8 @@
14
all: f2c.h signal1.h sysdep1.h libf2c.a
15
16
libf2c.a: $(OFILES)
17
- ar r libf2c.a $?
18
- -ranlib libf2c.a
19
+ zig ar r libf2c.a $?
20
+ -zig ranlib libf2c.a
21
22
## Shared-library variant: the following rule works on Linux
23
## systems. Details are system-dependent. Under Linux, -fPIC
24
25