Makefile bug: under AIX, BOOT_LDFLAGS not passed to compiler; build fails

Todd Veldhuizen tveldhui@seurat.uwaterloo.ca
Thu Jun 18 09:13:00 GMT 1998


In egcs-19980618 under AIX 4.2.x, the BOOT_LDFLAGS aren't being passed
to the compiler.

In egcs-19980615/gcc/cp/Makefile:

# f771 and cc1plus overflow the AIX TOC
BOOT_LDFLAGS=-Wl,-bbigtoc

  .
  .

ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS)

  .
  .

compiler: ../cc1plus$(exeext)
../cc1plus$(exeext): $(P) $(CXX_OBJS) $(OBJDEPS) $(LIBDEPS)
        $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
              $(CXX_OBJS) $(OBJS) $(LIBS)


As a result, linking cc1plus overflows the AIX TOC and the build fails.  
I'm guessing that somewhere in this Makefile, BOOT_LDFLAGS should be 
added to $(LDFLAGS).

This bug was found by Martin Reinecke <martin@mpa-garching.mpg.de>.

Cheers,
Todd




More information about the Gcc-bugs mailing list