From 07b983da99d908812e9355379eeca0b5fbd8c07c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 19 Aug 1996 21:59:32 +0000 Subject: [PATCH] Incorporate LDFLAGS calculated by configure (for --with-readline) --- Modules/Makefile.pre.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Makefile.pre.in b/Modules/Makefile.pre.in index fc9bf3f1520..0010d4e0f98 100644 --- a/Modules/Makefile.pre.in +++ b/Modules/Makefile.pre.in @@ -24,6 +24,7 @@ RANLIB= @RANLIB@ AR= @AR@ OPT= @OPT@ +LDFLAGS= @LDFLAGS@ DEFS= @DEFS@ LIBS= @LIBS@ @@ -107,7 +108,7 @@ all: $(LIB) ../python sharedmods asharedmodule: $(ASHAREDMODULE)$(SO) $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS) - $(LDSHARED) -o $(ASHAREDMODULE)$(SO) $(ASHAREDMODULESOBS) \ + $(LDSHARED) $(LDFLAGS) -o $(ASHAREDMODULE)$(SO) $(ASHAREDMODULESOBS) \ $(ASHAREDMODULESEXTRA) $(LIB): $& $(OBJS) Makefile @@ -116,7 +117,7 @@ $(LIB): $& $(OBJS) Makefile $(RANLIB) $(LIB) ../python: $(MYLIBS) $(ADDOBJS) Makefile - $(LINKCC) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \ + $(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \ $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python mv python ../python