From 717503bac58f75de867fdda2c4a9562f715c52d6 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Mon, 30 Sep 2013 00:36:07 +0200 Subject: [PATCH] Honor LDFLAGS at link-time. --- gnushogi/Makefile.in | 8 ++++---- xshogi/Makefile.in | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gnushogi/Makefile.in b/gnushogi/Makefile.in index 47f5b6c..5934c4a 100644 --- a/gnushogi/Makefile.in +++ b/gnushogi/Makefile.in @@ -71,7 +71,7 @@ CC = @CC@ CWARNINGS = @WARNINGS@ CEXTRAFLAGS = @CEXTRAFLAGS@ CFLAGS = @CFLAGS@ $(CEXTRAFLAGS) $(CWARNINGS) -I$(ROOT) -I@top_builddir@ - +LDFLAGS = @LDFLAGS@ # The hashfile is a record of positions seen. It is used by # GNU Shogi to avoid making the same mistakes, a form of learning. @@ -136,13 +136,13 @@ PAT2INCFILES = $(COMMONFILES) makepattern.o pat2inc.o # gnushogi: - $(CC) $(CFLAGS) -o gnushogi $(GNUSHOGI_FILES) $(LCURSES) $(LIBS) + $(CC) $(CFLAGS) -o gnushogi $(GNUSHOGI_FILES) $(LDFLAGS) $(LCURSES) $(LIBS) pat2inc: - $(CC) $(CFLAGS) -o pat2inc $(PAT2INCFILES) $(LCURSES) $(LIBS) + $(CC) $(CFLAGS) -o pat2inc $(PAT2INCFILES) $(LDFLAGS) $(LCURSES) $(LIBS) sizetest: - $(CC) $(CFLAGS) -o sizetest sizetest.o $(LIBS) + $(CC) $(CFLAGS) -o sizetest sizetest.o $(LDFLAGS) $(LIBS) profile: $(MAKE) -f Makefile.profile gnushogi diff --git a/xshogi/Makefile.in b/xshogi/Makefile.in index eafc13c..d884940 100644 --- a/xshogi/Makefile.in +++ b/xshogi/Makefile.in @@ -67,7 +67,7 @@ CEXTRAFLAGS = @CEXTRAFLAGS@ CFLAGS = @CFLAGS@ $(CEXTRAFLAGS) $(XINCLUDES) -I$(ROOT) -I@top_builddir@ LIBS = XLIBS = @X_LIBS@ -lXaw -lXmu -lXt -lXext -lX11 -LDFLAGS = $(XLIBS) $(LIBS) +LDFLAGS = @LDFLAGS@ $(XLIBS) $(LIBS) OPT = @OPT@ -- 1.7.0.4