This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BOOT_LDFLAGS outside of gcc subdirectory


   Why aren't the BOOT_LDFLAGS settings honored outside of the gcc build subdirectory?
On darwin, we are now setting...

BOOT_LDFLAGS += `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`

in config/mh-darwin, and while the generated toplevel Makefile shows...

	LDFLAGS="$(POSTSTAGE1_LDFLAGS) $(BOOT_LDFLAGS)"; export LDFLAGS; \

for POSTSTAGE1_HOST_EXPORTS, this doesn't seem to allow the BOOT_LDFLAGS flags
to travel into any of the builds for libjava, etc in x86_64-apple-darwin11.0.0.
The Makefiles in those subdirectories all show...

LDFLAGS =

such that the -Wl,-no_pie set by BOOT_LDFLAGS is lost. Is this intentional and
how can it be fixed or worked around to honor BOOT_LDFLAGS in all of the library
builds?
          Jack


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]