summaryrefslogtreecommitdiff
path: root/dev-libs/libf2c/files/20240130-link-shared-libf2c-correctly.patch
blob: 9b58139b91a9d2b07a03fff524b1de27da51789d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/makefile.u b/makefile.u
index a1cb700..6d5fb78 100644
--- a/makefile.u
+++ b/makefile.u
@@ -88,7 +88,7 @@ libf2c.a: $(OFILES)
 ## arrange for $DYLD_LIBRARY_PATH to include the directory containing libf2c.so.
 
 libf2c.so: $(OFILES)
-	$(CC) $(LDFLAGS) -shared -o libf2c.so $(OFILES)
+	$(CC) $(LDFLAGS) -shared -Wl,-soname,libf2c.so.2 -o libf2c.so.2 -lm $(OFILES)
 
 ### If your system lacks ranlib, you don't need it; see README.