OSDN Git Service

Split the LDFLAGS make variable into two parts: LDFLAGS is now used for
[pg-rex/syncrep.git] / src / makefiles / Makefile.dgux
index f951963..0c34d4a 100644 (file)
@@ -2,7 +2,8 @@ AROPT = crs
 DLSUFFIX = .so
 CFLAGS_SL = -fpic
 
+# Rule for building a shared library from a single .o file
 %.so: %.o
-       $(CC) -shared -o $@ $<
+       $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
 
 sqlmansect = 5