From 3b29525a799d4c7ccd80e8867fd18d618e683485 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 4 Aug 2003 20:34:26 +0000 Subject: [PATCH] Sub-Makefiles need to explicitly add CFLAGS_SL to CFLAGS, else their object files do not get built with -fpic. --- contrib/tsearch2/ispell/Makefile | 1 + contrib/tsearch2/snowball/Makefile | 1 + contrib/tsearch2/wordparser/Makefile | 1 + 3 files changed, 3 insertions(+) diff --git a/contrib/tsearch2/ispell/Makefile b/contrib/tsearch2/ispell/Makefile index a02e6a82ae..5532359b1c 100644 --- a/contrib/tsearch2/ispell/Makefile +++ b/contrib/tsearch2/ispell/Makefile @@ -4,6 +4,7 @@ include $(top_builddir)/src/Makefile.global override CPPFLAGS := -I$(srcdir) -I$(srcdir)/.. $(CPPFLAGS) +override CFLAGS += $(CFLAGS_SL) SUBOBJS = spell.o diff --git a/contrib/tsearch2/snowball/Makefile b/contrib/tsearch2/snowball/Makefile index 7ba59e24dc..156b1b3d39 100644 --- a/contrib/tsearch2/snowball/Makefile +++ b/contrib/tsearch2/snowball/Makefile @@ -4,6 +4,7 @@ include $(top_builddir)/src/Makefile.global override CPPFLAGS := -I$(srcdir) -I$(srcdir)/.. $(CPPFLAGS) +override CFLAGS += $(CFLAGS_SL) SUBOBJS = english_stem.o api.o russian_stem.o utilities.o diff --git a/contrib/tsearch2/wordparser/Makefile b/contrib/tsearch2/wordparser/Makefile index 5322f40696..56d476525f 100644 --- a/contrib/tsearch2/wordparser/Makefile +++ b/contrib/tsearch2/wordparser/Makefile @@ -4,6 +4,7 @@ include $(top_builddir)/src/Makefile.global override CPPFLAGS := -I$(srcdir) -I$(srcdir)/.. $(CPPFLAGS) +override CFLAGS += $(CFLAGS_SL) SUBOBJS = parser.o deflex.o -- 2.40.0