From: Yann Dirson Date: Sun, 29 Sep 2013 22:36:07 +0000 (+0200) Subject: Honor LDFLAGS at link-time. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=717503bac58f75de867fdda2c4a9562f715c52d6;p=gnushogi.git Honor LDFLAGS at link-time. --- 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@