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

Skip to content

Commit 5ec8e4b

Browse files
committed
Moved the special compile of getbuildno.o to ../Makefile.in.
A dummy getbuildno.o (with a number of 0) still gets built here, to make the library complete.
1 parent 1eec528 commit 5ec8e4b

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

Modules/Makefile.pre.in

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,7 @@ $(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
113113
# This target is used by the master Makefile to add the objects to the library.
114114
# To deal with the conflict between signalmodule.o and sigcheck.o,
115115
# we remove the latter if we have the former.
116-
add2lib: $(OBJS) buildno
117-
expr `cat buildno` + 1 >@buildno
118-
mv @buildno buildno
119-
$(CC) -c $(CFLAGS) -DBUILD=`cat buildno` \
120-
$(srcdir)/getbuildinfo.c
116+
add2lib: $(OBJS)
121117
$(AR) cr $(LIBRARY) $(OBJS)
122118
-if ar x $(LIBRARY) signalmodule.o 2>/dev/null; \
123119
then ar d $(LIBRARY) sigcheck.o 2>/dev/null; true; \
@@ -130,9 +126,6 @@ link: $(MAINOBJ)
130126
$(LIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
131127
mv python ../python
132128

133-
buildno:
134-
echo 0 >buildno
135-
136129
clean:
137130
-rm -f *.o python core *~ [@,#]* *.old *.orig *.rej add2lib
138131

0 commit comments

Comments
 (0)