From 50143b1b6f026d55bfc9156b84c3dee0773e47f5 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 11 Oct 2005 18:31:26 +0000 Subject: Allow building uClibc w/ make-3.79.1 if SSP is disabled --- libc/misc/internals/Makefile | 2 ++ libc/sysdeps/linux/common/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile index 1df05a934..fc5ca267b 100644 --- a/libc/misc/internals/Makefile +++ b/libc/misc/internals/Makefile @@ -27,7 +27,9 @@ include $(TOPDIR)Rules.mak CSRC=__uClibc_main.c tempname.c errno.c __errno_location.c __h_errno_location.c COBJS=$(patsubst %.c,%.o, $(CSRC)) +ifeq ($(UCLIBC_HAS_SSP),y) __uClibc_main.o: CFLAGS += $(SSP_DISABLE_FLAGS) +endif OBJS=$(COBJS) diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 87791724a..44014979d 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -31,9 +31,9 @@ SRCS := $(filter-out ssp.c,$(SRCS)) NONSHARED_OBJ_LIST= else NONSHARED_OBJ_LIST=../../../nonshared_obj.sysdeps.common -endif ssp.o: CFLAGS += $(SSP_DISABLE_FLAGS) ssp-local.o: CFLAGS += $(SSP_DISABLE_FLAGS) +endif OBJS = $(patsubst %.c,%.o, $(SRCS)) -- cgit v1.2.3