commit 68f708a57359be6041e17213f74e7ab271c6dcc7 parent ca1bfbd9fc9043c99d6c1d4f97caca6ac676bb70 Author: Russ Cox <rsc@swtch.com> Date: Sun, 7 Dec 2008 20:19:20 -0800 Makefrag: muddle along with host cc/ld on x86-64 Diffstat:
src/Makefrag | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Makefrag b/src/Makefrag @@ -21,12 +21,14 @@ HOST_CFLAGS := $(COMMON_CFLAGS) # VX32_AR := vx32-ar # VX32_OBJCOPY := vx32-objcopy VX32_CC := gcc -m32 -VX32_LD := ld +VX32_LD := ld -melf_i386 VX32_AR := ar VX32_OBJCOPY := objcopy VX32_CFLAGS := -nostdinc -Ilibvxc/include $(COMMON_CFLAGS) -VX32_LDFLAGS := -Llibvxc -L$(dir $(shell vx32-gcc -print-libgcc-file-name)) \ +VX32_CFLAGS += $(shell $(VX32_CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector) + +VX32_LDFLAGS := -Llibvxc -L$(dir $(shell $(VX32_CC) -print-libgcc-file-name)) \ $(COMMON_LDFLAGS) libvxc/vx32/crt0.o VX32_LDLIBS := -lc -lgcc