| Summary: | Linking problem with granular libraries | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Gabriele Cosmo <Gabriele.Cosmo> |
| Component: | config | Assignee: | John.Allison |
| Status: | CLOSED LATER | ||
| Severity: | normal | CC: | Gunter.Folger |
| Priority: | P2 | ||
| Version: | 0.0 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Gabriele Cosmo
2000-04-10 07:36:54 CEST
I propose fixing this by the following changes tested on Linux. -M follows all headers, including files specified by #include <...>. Steve, please do a test build with just these changes and check that dependency (.d) files do not get too big. If all's OK, will you approve, Gabriele? bash-2.02$ cvs diff cvs diff: Diffing . Index: binmake.gmk =================================================================== RCS file: /afs/cern.ch/sw/geant4/cvs/geant4/config/binmake.gmk,v retrieving revision 1.45 diff -r1.45 binmake.gmk 291c291 < g++ -MM $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@ --- > g++ -M $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@ Index: common.gmk =================================================================== RCS file: /afs/cern.ch/sw/geant4/cvs/geant4/config/common.gmk,v retrieving revision 1.14 diff -r1.14 common.gmk 119c119 < # g++ -MM is good at this, except it forgets the subdirectory --- > # g++ -MM (or -M) is good at this, except it forgets the subdirectory 138c138 < g++ -MM $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/$*.o!& $@!' >$@ --- > g++ -M $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/$*.o!& $@!' >$@ cvs diff: Diffing sys I propose fixing this by the following changes tested on Linux. -M follows all headers, including files specified by #include <...>. Steve, please do a test build with just these changes and check that dependency (.d) files do not get too big. If all's OK, will you approve, Gabriele? bash-2.02$ cvs diff cvs diff: Diffing . Index: binmake.gmk =================================================================== RCS file: /afs/cern.ch/sw/geant4/cvs/geant4/config/binmake.gmk,v retrieving revision 1.45 diff -r1.45 binmake.gmk 291c291 < g++ -MM $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@ --- > g++ -M $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@ Index: common.gmk =================================================================== RCS file: /afs/cern.ch/sw/geant4/cvs/geant4/config/common.gmk,v retrieving revision 1.14 diff -r1.14 common.gmk 119c119 < # g++ -MM is good at this, except it forgets the subdirectory --- > # g++ -MM (or -M) is good at this, except it forgets the subdirectory 138c138 < g++ -MM $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/$*.o!& $@!' >$@ --- > g++ -M $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/$*.o!& $@!' >$@ cvs diff: Diffing sys |