]> granicus.if.org Git - postgresql/blobdiff - src/makefiles/Makefile.netbsd
Fix insufficiently-portable regression test case.
[postgresql] / src / makefiles / Makefile.netbsd
index 366f20cdddc13dc0c476af4c924cf4051af85271..31a52601aff07cc0cd85e03c40dc4d4ee35603b7 100644 (file)
@@ -16,9 +16,10 @@ CFLAGS_SL = -fpic -DPIC
 endif
 
 
+# Rule for building a shared library from a single .o file
 %.so: %.o
 ifdef ELF_SYSTEM
-       $(CC) $(CFLAGS) -shared -o $@ $<
+       $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
 else
        $(LD) $(LDREL) $(LDOUT) $<.obj -x $<
        @echo building shared object $@