From f02e3a2628171187df0d34af5708312604cd9b82 Mon Sep 17 00:00:00 2001 From: Nathan Phillip Brink Date: Wed, 13 Jul 2011 20:23:34 -0400 Subject: [PATCH] Use LDFLAGS when compiling extensions or modules. --- extensions/Makefile.in | 2 +- modules/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/Makefile.in b/extensions/Makefile.in index 261a488cf..75a3f4a54 100644 --- a/extensions/Makefile.in +++ b/extensions/Makefile.in @@ -98,7 +98,7 @@ install: all .SUFFIXES: .so .c.so: - ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ + ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@ .PHONY: depend clean distclean depend: diff --git a/modules/Makefile.in b/modules/Makefile.in index e9936e97c..b241c82e2 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -195,7 +195,7 @@ install_hpux_shared: install-mkdirs ${CC} ${CPPFLAGS} ${CFLAGS} -DMODNAME=`basename $< .c`_mheader -c $< -o $@ .c.so: - ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ + ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} $< -o $@ .so.sl: $(LD) -b $< -o $@