File patch-Makefile-ldflags.patch of Package postgresql93-plr
diff -rup a/Makefile b/Makefile
--- a/Makefile 2015-02-08 20:48:53.000000000 +0100
+++ b/Makefile 2015-02-09 18:12:39.288724128 +0100
@@ -21,7 +21,7 @@ MODULE_big = plr
PG_CPPFLAGS += $(r_includespec)
SRCS += plr.c pg_conversion.c pg_backend_support.c pg_userfuncs.c pg_rsupport.c
OBJS := $(SRCS:.c=.o)
-SHLIB_LINK += -L$(r_libdir1x) -L$(r_libdir2x) -lR
+SHLIB_LINK += -L$(r_libdir1x) -L$(r_libdir2x) -lR $(LDFLAGS)
DATA_built = plr.sql
DATA = plr--8.3.0.16.sql plr--unpackaged--8.3.0.16.sql
DOCS = README.plr
@@ -72,7 +72,7 @@ ifneq (,$(findstring yes, $(shared_libr)
override CPPFLAGS := -I"$(srcdir)" -I"$(r_includespec)" $(CPPFLAGS)
override CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\" -DDLSUFFIX=\"$(DLSUFFIX)\"
override CPPFLAGS += -DR_HOME_DEFAULT=\"$(rhomedef)\"
-
+override CPPFLAGS += $(LDFLAGS)
else # can't build
all: