Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acd738f

Browse files
committed
SF patch 659809, by Daniel Brotsky: fix Makefile.pre to use config
env. This adds @CFLAGS@ and @CPPFLAGS@ to the end of the respective variable definitions. It also adds $(LDFLAGS) to the $(CC) invocation to build $(PGEN).
1 parent c27f4bd commit acd738f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Makefile.pre.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ MAKESETUP= $(srcdir)/Modules/makesetup
5454

5555
# Compiler options
5656
OPT= @OPT@
57-
CFLAGS= $(OPT)
58-
CPPFLAGS= -I. -I$(srcdir)/Include
57+
CFLAGS= $(OPT) @CFLAGS@
58+
CPPFLAGS= -I. -I$(srcdir)/Include @CPPFLAGS@
5959
LDFLAGS= @LDFLAGS@
6060
LDLAST= @LDLAST@
6161
SGI_ABI= @SGI_ABI@
@@ -427,7 +427,7 @@ $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
427427
-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
428428

429429
$(PGEN): $(PGENOBJS)
430-
$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
430+
$(CC) $(OPT) $(PGENOBJS) $(LDFLAGS) $(LIBS) -o $(PGEN)
431431

432432
Parser/grammar.o: $(srcdir)/Parser/grammar.c \
433433
$(srcdir)/Include/token.h \

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,9 @@ Tools/Demos
741741
Build
742742
-----
743743

744+
- Makefile.pre.in now adds @CFLAGS@ and @CPPFLAGS@ to their respective
745+
variable definitions.
746+
744747
- On Unix, IDLE is now installed automatically.
745748

746749
- The fpectl module is not built by default; it's dangerous or useless

0 commit comments

Comments
 (0)