summaryrefslogtreecommitdiff
path: root/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch')
-rw-r--r--dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch
new file mode 100644
index 000000000000..d35e60bed0ff
--- /dev/null
+++ b/dev-libs/libf2c/files/20090407-link-shared-libf2c-correctly.patch
@@ -0,0 +1,11 @@
+--- makefile.u.orig 2008-07-07 23:27:41.000000000 -0700
++++ makefile.u 2008-07-07 23:28:39.000000000 -0700
+@@ -82,7 +82,7 @@
+ ## of "cc -shared".
+
+ libf2c.so: $(OFILES)
+- $(CC) -shared -o libf2c.so $(OFILES)
++ $(CC) -shared $(LDFLAGS) -Wl,-soname,libf2c.so.2 $(OFILES) -o libf2c.so.2 -lm
+
+ ### If your system lacks ranlib, you don't need it; see README.
+