aboutsummaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.unixware
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefiles/Makefile.unixware')
-rw-r--r--src/makefiles/Makefile.unixware9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/makefiles/Makefile.unixware b/src/makefiles/Makefile.unixware
index 3fa10f97d93..a52717b2688 100644
--- a/src/makefiles/Makefile.unixware
+++ b/src/makefiles/Makefile.unixware
@@ -13,6 +13,9 @@ else
endif
endif
+# Unixware needs threads for everything that uses libpq
+CFLAGS += $(PTHREAD_CFLAGS)
+
DLSUFFIX = .so
ifeq ($(GCC), yes)
CFLAGS_SL = -fpic
@@ -25,10 +28,8 @@ else
SO_FLAGS = -G
endif
+# Rule for building a shared library from a single .o file
%.so: %.o
- $(CC) $(SO_FLAGS) -o $@ $<
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) $(SO_FLAGS) -o $@ $<
sqlmansect = 5sql
-
-# Unixware needs threads for everything that uses libpq
-CFLAGS += $(PTHREAD_CFLAGS)