Skip to content

Commit 751ebd2

Browse files
committed
Various fixes for ecpg to remove compiler dependency...
From: Darren King <darrenk@insightdist.com>
1 parent 906d5cc commit 751ebd2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/interfaces/ecpg/lib/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ uninstall::
6161
libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o)
6262

6363
ecpglib.o : ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
64-
$(CC) -O2 -g -Wall -I../include $(PQ_INCLUDE) -c ecpglib.c
64+
$(CC) -Wall -I../include $(PQ_INCLUDE) -c ecpglib.c
6565
typename.o : typename.c ../include/ecpgtype.h
66-
$(CC) -g -O2 -Wall -I../include $(PQ_INCLUDE) -c typename.c
66+
$(CC) -Wall -I../include $(PQ_INCLUDE) -c typename.c

src/interfaces/ecpg/preproc/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# Generated automatically from Makefile.in by configure.
21
SRCDIR= ../../..
32
include $(SRCDIR)/Makefile.global
43

54
MAJOR_VERSION=1
65
MINOR_VERSION=0
76
PATCHLEVEL=0
87

9-
CFLAGS=-I../include -O2 -g -Wall -DMAJOR_VERSION=$(MAJOR_VERSION) -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
8+
CFLAGS=-I../include -Wall -DMAJOR_VERSION=$(MAJOR_VERSION) -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
109

1110
all:: ecpg
1211

@@ -21,7 +20,7 @@ uninstall:
2120

2221
# Rule that really do something.
2322
ecpg: y.tab.o pgc.o type.o ecpg.o ../lib/typename.o
24-
$(CC) -g -O2 -Wall -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o $(LEXLIB)
23+
$(CC) -Wall -o ecpg y.tab.o pgc.o type.o ecpg.o ../lib/typename.o $(LEXLIB)
2524

2625
y.tab.h y.tab.c: preproc.y
2726
$(YACC) $(YFLAGS) $<

0 commit comments

Comments
 (0)