Files
gentoo/dev-libs/libf2c/files/20240130-link-shared-libf2c-correctly.patch
Eli Schwartz 288ba058cb dev-libs/libf2c: add 20240130
Fix up a couple old patches to apply, and drop one that doesn't. There's
been a bit of development since 2009, after all.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-03-11 14:22:44 +00:00

14 lines
444 B
Diff

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.