summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.ultrix4
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefiles/Makefile.ultrix4')
-rw-r--r--src/makefiles/Makefile.ultrix43
1 files changed, 2 insertions, 1 deletions
diff --git a/src/makefiles/Makefile.ultrix4 b/src/makefiles/Makefile.ultrix4
index 1c03737756..6685b8c0af 100644
--- a/src/makefiles/Makefile.ultrix4
+++ b/src/makefiles/Makefile.ultrix4
@@ -6,5 +6,6 @@ DLSUFFIX = .so
# "-G 0" works for both DEC cc and GNU cc.
CFLAGS_SL = -G 0
+# Rule for building a shared library from a single .c file
%.so: %.c
- $(CC) -c -G 0 $(CPPFLAGS) $(CFLAGS) -o $@ $<
+ $(CC) -c -G 0 $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $<